mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-03 19:42:15 +02:00
wip, fixing c10n
This commit is contained in:
parent
b46fdb2c3c
commit
5715f652bb
@ -11,7 +11,7 @@ coreos:
|
||||
[Service]
|
||||
Type=oneshot
|
||||
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
|
||||
runtime: yes
|
||||
content: |
|
||||
|
@ -68,7 +68,7 @@ if head -n 1 $TMP | grep -q '^#!'; then
|
||||
elif head -n 1 $TMP | grep -q '^#cloud-config'; then
|
||||
# If an etcd discovery URL was found, we can assume the new hotness
|
||||
# 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=""
|
||||
fi
|
||||
|
||||
|
@ -16,9 +16,10 @@ IUSE=""
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
doexe ${FILESDIR}/ec2-ssh-key
|
||||
doexe ${FILESDIR}/coreos-setup-environment
|
||||
doexe ${FILESDIR}/coreos-c10n
|
||||
into "/usr"
|
||||
dobin ${FILESDIR}/ec2-ssh-key
|
||||
dobin ${FILESDIR}/coreos-setup-environment
|
||||
dobin ${FILESDIR}/coreos-c10n
|
||||
|
||||
insinto "/"
|
||||
doins ${FILESDIR}/cloud-config.yml
|
||||
|
Loading…
x
Reference in New Issue
Block a user