From fa71bb7bceac4a8aaa935481df14cd23d181c009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Wed, 16 Nov 2022 16:25:08 +0100 Subject: [PATCH] Handle MACHINE_ID=uninitialized systemd supports /etc/machine-id to be set to: uninitialized In this case the expectation is that systemd creates a new machine ID and replaces the value 'uninitialized' with the effective machine id. In the scope of kernel-install we should also enforce the creation of a new machine id in this condition (cherry picked from commit 305dd91adfde332e7e5c1b2470edb32774f9a032) (cherry picked from commit 132f0ec7de303538dcdae02175a807fec97712b8) Backported for https://bugzilla.redhat.com/show_bug.cgi?id=2148464. --- src/kernel-install/kernel-install.in | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kernel-install/kernel-install.in b/src/kernel-install/kernel-install.in index 562a051e7f..5536d1275e 100755 --- a/src/kernel-install/kernel-install.in +++ b/src/kernel-install/kernel-install.in @@ -140,6 +140,7 @@ if [ -z "$MACHINE_ID" ] && [ -r /etc/machine-info ] && . /etc/machine-info && MA echo "machine-id $MACHINE_ID acquired from /etc/machine-info" fi if [ -z "$MACHINE_ID" ] && [ -s /etc/machine-id ] && read -r MACHINE_ID