summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wolf <gwolf@gwolf.org>2021-05-28 18:48:39 -0500
committerGunnar Wolf <gwolf@gwolf.org>2021-05-28 18:48:39 -0500
commit99c34cc1d64dfb528a939456699ca67943dec42f (patch)
tree94fb0e39764c8a3ddfba8e6dc7eab5b47b0f4cde
parent0f23b8e37802c409d1cacd438aac19b26ea6d347 (diff)
Remove /etc/machine-id so that it gets generated upon the (real) first boot
-rw-r--r--raspi_master.yaml12
1 files changed, 12 insertions, 0 deletions
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