mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-02 11:01:14 +02:00
fix(oem-gce): use cloud-config instead of run
This commit is contained in:
parent
e1bf07d74d
commit
66760e1293
14
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/cloud-config.yml
vendored
Normal file
14
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/cloud-config.yml
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
#cloud-config
|
||||
|
||||
coreos:
|
||||
units:
|
||||
- name: ec2-ssh-key.service
|
||||
runtime: yes
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Sets SSH key from metadata
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
StandardOutput=journal+console
|
||||
ExecStart=/usr/share/oem/bin/gce-ssh-key
|
@ -15,10 +15,12 @@ IUSE=""
|
||||
# no source directory
|
||||
S="${WORKDIR}"
|
||||
|
||||
RDEPEND="dev-lang/python"
|
||||
|
||||
src_install() {
|
||||
exeinto "/"
|
||||
doexe ${FILESDIR}/run
|
||||
into "/"
|
||||
dobin ${FILESDIR}/gce-ssh-key
|
||||
|
||||
insinto "/"
|
||||
doins ${FILESDIR}/oem-release
|
||||
doins ${FILESDIR}/cloud-config.yml
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user