wip, fixing c10n

This commit is contained in:
Alex Polvi 2014-03-14 01:03:01 +00:00
parent b46fdb2c3c
commit 5715f652bb
3 changed files with 6 additions and 5 deletions

View File

@ -11,7 +11,7 @@ coreos:
[Service] [Service]
Type=oneshot Type=oneshot
StandardOutput=journal+console StandardOutput=journal+console
ExecStart=/usr/share/oem/usr/bin/ec2-ssh-key.sh ExecStart=/usr/share/oem/usr/bin/ec2-ssh-key
- name: ec2-cloudinit.service - name: ec2-cloudinit.service
runtime: yes runtime: yes
content: | content: |

View File

@ -68,7 +68,7 @@ if head -n 1 $TMP | grep -q '^#!'; then
elif head -n 1 $TMP | grep -q '^#cloud-config'; then elif head -n 1 $TMP | grep -q '^#cloud-config'; then
# If an etcd discovery URL was found, we can assume the new hotness # If an etcd discovery URL was found, we can assume the new hotness
# will handle bootstrapping, allowing us to clear the c10n token # will handle bootstrapping, allowing us to clear the c10n token
if head -n 1 $TMP | grep -q 'discovery_url:'; then if grep -q 'discovery_url:' $TMP; then
C10N_TOKEN="" C10N_TOKEN=""
fi fi

View File

@ -16,9 +16,10 @@ IUSE=""
S="${WORKDIR}" S="${WORKDIR}"
src_install() { src_install() {
doexe ${FILESDIR}/ec2-ssh-key into "/usr"
doexe ${FILESDIR}/coreos-setup-environment dobin ${FILESDIR}/ec2-ssh-key
doexe ${FILESDIR}/coreos-c10n dobin ${FILESDIR}/coreos-setup-environment
dobin ${FILESDIR}/coreos-c10n
insinto "/" insinto "/"
doins ${FILESDIR}/cloud-config.yml doins ${FILESDIR}/cloud-config.yml