Skip to content

Commit

Permalink
Merge pull request #64 from flatcar-linux/tormath1/gcp
Browse files Browse the repository at this point in the history
systemd/system: convert "gcp" OEM to "gce"
  • Loading branch information
tormath1 authored Mar 10, 2022
2 parents d993da3 + 1b95779 commit 2231de7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions systemd/system/oem-cloudinit.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Description=Run cloudinit
[Service]
EnvironmentFile=/var/run/ignition.env
Type=oneshot
ExecCondition=/usr/bin/bash -xc 'OEMS=(aws gce rackspace-onmetal azure cloudsigma packet vmware digitalocean); echo $${OEMS[*]} | tr " " "\n" | grep -q -x -F "${OEM_ID}"'
ExecStart=/usr/bin/bash -xc '/usr/bin/coreos-cloudinit --oem="$(if [ "${OEM_ID}" = aws ]; then echo ec2-compat; else echo "${OEM_ID}" ; fi)"'
ExecCondition=/usr/bin/bash -xc 'OEMS=(aws gcp rackspace-onmetal azure cloudsigma packet vmware digitalocean); echo $${OEMS[*]} | tr " " "\n" | grep -q -x -F "${OEM_ID}"'
ExecStart=/usr/bin/bash -xc '/usr/bin/coreos-cloudinit --oem="$(if [ "${OEM_ID}" = aws ]; then echo ec2-compat; elif [ "${OEM_ID}" = gcp ]; then echo gce; else echo "${OEM_ID}" ; fi)"'

[Install]
WantedBy=multi-user.target

0 comments on commit 2231de7

Please sign in to comment.