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:
Michael Marineau 2014-04-03 16:36:41 -07:00
parent 6a9e81713a
commit 38180174e5
4 changed files with 3 additions and 14 deletions

View File

@ -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

View File

@ -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