core: consult credentials for machine ID to use for host

Let's hook up one more thing with credentials: the machine ID to use
when none is initialized yet.

This requires some reordering of initialization steps in PID 1: we need
to import credentials first, and only then initialize the machine ID.
This commit is contained in:
Lennart Poettering
2023-07-04 23:01:42 +02:00
parent d021aa8ee3
commit deb0d489ea
4 changed files with 49 additions and 5 deletions
+10
View File
@@ -1069,6 +1069,16 @@
notification via VSOCK when a virtual machine has finished booting.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>system.machine_id</varname></term>
<listitem>
<para>Takes a 128bit hexadecimal ID to initialize <filename>/etc/machine-id</filename> from, if the
file is not set up yet. See
<citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry> for
details.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>