Skip to content

Commit

Permalink
Skip coreos-cloudinit if ignition is used
Browse files Browse the repository at this point in the history
This change skips coreos-cloudinit when config drive is used, if the
system was configured using ignition.

Signed-off-by: Gabriel Adrian Samfira <[email protected]>
  • Loading branch information
gabriel-samfira committed Mar 13, 2024
1 parent a7bc5f0 commit 1228569
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions units/user-configdrive.service
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ConditionKernelCommandLine=!coreos.oem.id=digitalocean

[Service]
Type=oneshot
ExecCondition=/usr/bin/bash -c "if [ -f '/etc/.ignition-result.json' ];then cat '/etc/.ignition-result.json' | /usr/bin/jq -e '.userConfigProvided == false';else exit 0;fi"
TimeoutSec=10min
RemainAfterExit=yes
EnvironmentFile=-/etc/environment
Expand Down

0 comments on commit 1228569

Please sign in to comment.