From 99c34cc1d64dfb528a939456699ca67943dec42f Mon Sep 17 00:00:00 2001 From: Gunnar Wolf Date: Fri, 28 May 2021 18:48:39 -0500 Subject: [PATCH] Remove /etc/machine-id so that it gets generated upon the (real) first boot --- raspi_master.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/raspi_master.yaml b/raspi_master.yaml index 928388a..78cc256 100644 --- a/raspi_master.yaml +++ b/raspi_master.yaml @@ -149,3 +149,15 @@ steps: - shell: | 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)): + # + # 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