From: Lukas Nykryn Date: Wed, 18 Jun 2025 11:33:25 +0000 (+0200) Subject: man: encourage the creation of empty machine-id instead of deleting it X-Git-Tag: v258-rc1~290 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64fcb07199f8409a074575eda5abb69b0caab06f;p=thirdparty%2Fsystemd.git man: encourage the creation of empty machine-id instead of deleting it Current text hints that machine-id in template image should be empty if the system is read-only. But most of the bare metal systems and regular VMs have /etc read-only at this phase of boot. --- diff --git a/man/machine-id.xml b/man/machine-id.xml index 79e020768d0..14ba878677c 100644 --- a/man/machine-id.xml +++ b/man/machine-id.xml @@ -84,9 +84,9 @@ containers or in the cloud, /etc/machine-id should be either missing or an empty file in the generic file system image (the difference between the two options is described under "First Boot Semantics" below). An ID will be generated during boot and saved to this file if possible. Having an - empty file in place is useful because it allows a temporary file to be bind-mounted over the real file, - in case the image is used read-only. Also see Safely - Building Images. + empty file in place is recommended because it allows a temporary file to be bind-mounted over the real file, + in case the image is used read-only and when /etc is mounted read-only in the early boot. + Also see Safely Building Images. systemd-firstboot1 may be used to initialize /etc/machine-id on mounted (but not