Skip to content

Commit

Permalink
Merge pull request #27 from gabriel-samfira/disable-coreos-cloudinit
Browse files Browse the repository at this point in the history
Skip coreos-cloudinit if ignition is used
  • Loading branch information
gabriel-samfira authored Mar 24, 2024
2 parents a7bc5f0 + edf9bb8 commit f78b9f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion units/user-configdrive.service
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ After=enable-oem-cloudinit.service oem-cloudinit.service
# Skip on clouds that are covered by flatcar/init:systemd/system/oem-cloudinit.service
ConditionKernelCommandLine=!flatcar.oem.id=digitalocean
ConditionKernelCommandLine=!coreos.oem.id=digitalocean

ConditionKernelCommandLine=!coreos.oem.id=openstack
ConditionKernelCommandLine=!flatcar.oem.id=openstack
[Service]
Type=oneshot
ExecCondition=/usr/bin/bash -c "if [ -f '/etc/.ignition-result.json' ] && /usr/bin/jq -e '.userConfigProvided == true' /etc/.ignition-result.json; then exit 1; fi"
TimeoutSec=10min
RemainAfterExit=yes
EnvironmentFile=-/etc/environment
Expand Down

0 comments on commit f78b9f7

Please sign in to comment.