Remove /etc/machine-id so that it gets generated upon the (real) first boot

This commit is contained in:
Gunnar Wolf 2021-05-28 18:48:39 -05:00
parent 0f23b8e378
commit 99c34cc1d6
1 changed files with 12 additions and 0 deletions

View File

@ -149,3 +149,15 @@ steps:
- shell: | - shell: |
rm "${ROOT?}/etc/resolv.conf" rm "${ROOT?}/etc/resolv.conf"
root-fs: / root-fs: /
# Clear /etc/machine-id, it should be auto-generated upon first
# boot. From the manpage (machine-id(5)):
#
# For normal operating system installations, where a custom image is
# created for a specific machine, /etc/machine-id should be
# populated during installation.
#
# Note this will also trigger ConditionFirstBoot=yes for systemd.
- chroot: /
shell: |
rm -f /etc/machine-id