build: Assert successful completion of cloud-init
Some checks failed
build-image / Build image (push) Failing after 5m57s

This commit is contained in:
2025-07-29 11:01:09 +10:00
parent c2f4b83102
commit 7838310001
2 changed files with 29 additions and 21 deletions

View File

@ -11,14 +11,14 @@ packages:
- cifs-utils
runcmd:
- apt-get install -y linux-modules-extra-$(uname -r)
- apt-get install -y --no-install-recommends linux-modules-extra-$(uname -r)
- sysctl -w net.ipv6.conf.all.disable_ipv6=1
- systemctl enable --now qemu-guest-agent.service
- cloud-init clean --logs
- 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
disable_root: false
users:
@ -30,3 +30,8 @@ users:
- ${PUBLIC_SSHKEY}
ssh_authorized_keys:
- ${PUBLIC_SSHKEY}
power_state:
delay: now
mode: poweroff
condition: true