]> git.ipfire.org Git - thirdparty/systemd.git/commit
kernel-install: Introduce KERNEL_INSTALL_MACHINE_ID in /etc/machine-info 21757/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 14 Dec 2021 16:09:08 +0000 (17:09 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 16 Dec 2021 11:24:42 +0000 (12:24 +0100)
commit357376d0bb525b064f468e0e2af8193b4b90d257
tree21cb0e4374d0d3016944a6602d692a2990bebe78
parent447a822f8ee47b63a4cae00423c4d407bfa5e516
kernel-install: Introduce KERNEL_INSTALL_MACHINE_ID in /etc/machine-info

If KERNEL_INSTALL_MACHINE_ID is defined in /etc/machine-info, prefer it
over the machine ID from /etc/machine-id. If a machine ID is defined in
neither /etc/machine-info nor in /etc/machine-id, generate a new UUID
and try to write it to /etc/machine-info as KERNEL_INSTALL_MACHINE_ID
and use it as the machine ID if writing it to /etc/machine-info succeeds.

In practice, this means we have a more robust fallback if there's no
machine ID in /etc/machine-id than just using "Default" and allows
image builders to force kernel-install to use KERNEL_INSTALL_MACHINE_ID
by simply writing it to /etc/machine-info themselves.
NEWS
man/kernel-install.xml
man/machine-info.xml
src/kernel-install/kernel-install