build: Assert successful completion of cloud-init
Some checks failed
build-image / Build image (push) Has been cancelled

This commit is contained in:
2025-07-29 13:02:52 +10:00
parent c2f4b83102
commit af8c5140a8
2 changed files with 35 additions and 21 deletions

View File

@ -18,7 +18,8 @@ runcmd:
- truncate -s 0 /etc/hostname /etc/machine-id
- rm -f /etc/ssh/ssh_host_* /var/lib/dbus/machine-id
- ln -s /etc/machine-id /var/lib/dbus/machine-id
- poweroff
- echo "TEMPLATE_GENERATION_SUCCESS" | tee /var/log/template-generation-success
- sync
disable_root: false
users:
@ -30,3 +31,8 @@ users:
- ${PUBLIC_SSHKEY}
ssh_authorized_keys:
- ${PUBLIC_SSHKEY}
power_state:
delay: now
mode: poweroff
condition: true