]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: update machine-id-setup(1)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 24 May 2024 17:01:53 +0000 (02:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 24 May 2024 17:13:00 +0000 (02:13 +0900)
- 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.

man/systemd-machine-id-setup.xml

index 8ece65eacc42104218369c51c9b9c239add52dbe..bb53cc7069d4e83cbd27efc3eea0fc3a9143e54a 100644 (file)
     ID will be acquired in the following fashion:</para>
 
     <orderedlist>
-      <listitem><para>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
-      <filename>/etc/machine-id</filename>.</para></listitem>
-
-      <listitem><para>If run inside a KVM virtual machine and a UUID
-      is configured (via the <option>-uuid</option>
-      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.</para></listitem>
+      <listitem><para>If a valid machine ID is stored in <filename>/run/machine-id</filename>, the machine ID
+      is copied and used to initialize the machine ID in <filename>/etc/machine-id</filename>. This step is
+      skipped if <option>--root=</option> is specified or running in a chroot environment.</para></listitem>
+
+      <listitem><para>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 <filename>/etc/machine-id</filename>.
+      </para></listitem>
+
+      <listitem><para>If a valid machine ID is provided through <option>system.machine_id</option> credential,
+      the machine ID is copied and used to initialize the machine ID in <filename>/etc/machine-id</filename>.
+      This step is skipped if <option>--root=</option> is specified or running in a chroot environment.
+      </para></listitem>
+
+      <listitem><para>If run inside a KVM virtual machine and a UUID is configured (via the
+      <option>-uuid</option> 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 <option>--root=</option> is specified or running in a chroot environment.
+      </para></listitem>
 
       <listitem><para>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 <ulink
-      url="https://systemd.io/CONTAINER_INTERFACE">Container Interface</ulink>.</para></listitem>
+      url="https://systemd.io/CONTAINER_INTERFACE">Container Interface</ulink>. This step is skipped if
+      <option>--root=</option> is specified or running in a chroot environment.</para></listitem>
 
-      <listitem><para>Otherwise, a new ID is randomly
-      generated.</para></listitem>
+      <listitem><para>Otherwise, a new ID is randomly generated.</para></listitem>
     </orderedlist>
 
     <para>The <option>--commit</option> switch may be used to commit a