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]
|
[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: |
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user