From: Yu Watanabe Date: Fri, 24 May 2024 17:01:53 +0000 (+0900) Subject: man: update machine-id-setup(1) X-Git-Tag: v256-rc4~128^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c42df8166387578b3dbe72256e949b801c071d7;p=thirdparty%2Fsystemd.git man: update machine-id-setup(1) - mention that /run/machine-id is used if exist. - mention system.machine_id credential, - credential, VM uuid, and container uuid are not read when --root= is specified or running in a chroot environment. --- diff --git a/man/systemd-machine-id-setup.xml b/man/systemd-machine-id-setup.xml index 8ece65eacc4..bb53cc7069d 100644 --- a/man/systemd-machine-id-setup.xml +++ b/man/systemd-machine-id-setup.xml @@ -43,24 +43,31 @@ ID will be acquired in the following fashion: - If a valid D-Bus machine ID is already - configured for the system, the D-Bus machine ID is copied and - used to initialize the machine ID in - /etc/machine-id. - - If run inside a KVM virtual machine and a UUID - is configured (via the - option), this UUID is used to initialize the machine ID. The - caller must ensure that the UUID passed is sufficiently unique - and is different for every booted instance of the - VM. + If a valid machine ID is stored in /run/machine-id, the machine ID + is copied and used to initialize the machine ID in /etc/machine-id. This step is + skipped if is specified or running in a chroot environment. + + If a valid D-Bus machine ID is already configured for the system, the D-Bus machine ID + is copied and used to initialize the machine ID in /etc/machine-id. + + + If a valid machine ID is provided through credential, + the machine ID is copied and used to initialize the machine ID in /etc/machine-id. + This step is skipped if is specified or running in a chroot environment. + + + If run inside a KVM virtual machine and a UUID is configured (via the + option), this UUID is used to initialize the machine ID. The caller must ensure + that the UUID passed is sufficiently unique and is different for every booted instance of the VM. This + step is skipped if is specified or running in a chroot environment. + Similarly, if run inside a Linux container environment and a UUID is configured for the container, this is used to initialize the machine ID. For details, see the documentation of the Container Interface. + url="https://systemd.io/CONTAINER_INTERFACE">Container Interface. This step is skipped if + is specified or running in a chroot environment. - Otherwise, a new ID is randomly - generated. + Otherwise, a new ID is randomly generated. The switch may be used to commit a