mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
fix(coreos-base/oem-gce): Rename gce-setup-environment
The setup-environment script should be named coreos-setup-environment so that it is called by the standard coreos-setup-environment.service
This commit is contained in:
parent
6a9e81713a
commit
38180174e5
@ -16,24 +16,13 @@ coreos:
|
||||
runtime: yes
|
||||
content: |
|
||||
[Unit]
|
||||
Requires=gce-setup-environment.service
|
||||
After=gce-setup-environment.service
|
||||
Requires=coreos-setup-environment.service
|
||||
After=coreos-setup-environment.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=/etc/environment
|
||||
ExecStart=/usr/share/oem/bin/gce-coreos-cloudinit
|
||||
- name: gce-setup-environment.service
|
||||
command: restart
|
||||
runtime: yes
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Setup environment variables from metadata
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
StandardOutput=journal+console
|
||||
ExecStart=/usr/share/oem/bin/gce-setup-environment /etc/environment
|
||||
- name: gce-ssh-key.service
|
||||
command: restart
|
||||
runtime: yes
|
||||
|
||||
@ -24,8 +24,8 @@ src_install() {
|
||||
into "/usr/share/oem"
|
||||
dobin ${FILESDIR}/gce-ssh-key
|
||||
dobin ${FILESDIR}/gce-coreos-cloudinit
|
||||
dobin ${FILESDIR}/gce-setup-environment
|
||||
dobin ${FILESDIR}/gce-add-metadata-host
|
||||
dobin ${FILESDIR}/coreos-setup-environment
|
||||
|
||||
insinto "/usr/share/oem"
|
||||
doins ${FILESDIR}/cloud-config.yml
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user