Clearing machine-id requires also removing the info from /var/lib/bus/

This commit is contained in:
Gunnar Wolf 2021-06-08 11:51:12 -05:00
parent 8af1ec6cc6
commit 75698b0feb
1 changed files with 4 additions and 3 deletions

View File

@ -151,8 +151,9 @@ steps:
rm "${ROOT?}/etc/resolv.conf"
root-fs: /
# Clear /etc/machine-id, it should be auto-generated upon first
# boot. From the manpage (machine-id(5)):
# Clear /etc/machine-id and /var/lib/bus/machine-id, as both 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
@ -161,4 +162,4 @@ steps:
# Note this will also trigger ConditionFirstBoot=yes for systemd.
- chroot: /
shell: |
rm -f /etc/machine-id
rm -f /etc/machine-id /var/lib/bus/machine-id