Blame SOURCES/0031-kernel-install-90-loaderentry-do-not-override-an-exi.patch
|
|
ac3a84 |
From c440081c968c93d527d441f4d106e0acad9540eb Mon Sep 17 00:00:00 2001
|
|
|
ac3a84 |
From: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
|
|
|
ac3a84 |
Date: Mon, 7 Nov 2022 15:25:25 +0100
|
|
|
ac3a84 |
Subject: [PATCH] kernel-install/90-loaderentry: do not override an existing
|
|
|
ac3a84 |
systemd.machine_id
|
|
|
ac3a84 |
|
|
|
ac3a84 |
If the systemd.machine_id command line option is already set, do not override
|
|
|
ac3a84 |
it.
|
|
|
ac3a84 |
|
|
|
ac3a84 |
(cherry picked from commit 802d9219aa19d759113dd6cd1e91b2bb661fe9ba)
|
|
|
ac3a84 |
|
|
|
ac3a84 |
Related #2138081
|
|
|
ac3a84 |
---
|
|
|
ac3a84 |
src/kernel-install/90-loaderentry.install | 2 +-
|
|
|
ac3a84 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
ac3a84 |
|
|
|
ac3a84 |
diff --git a/src/kernel-install/90-loaderentry.install b/src/kernel-install/90-loaderentry.install
|
|
|
ac3a84 |
index ea75e1b0d8..41a05534b9 100755
|
|
|
ac3a84 |
--- a/src/kernel-install/90-loaderentry.install
|
|
|
ac3a84 |
+++ b/src/kernel-install/90-loaderentry.install
|
|
|
ac3a84 |
@@ -85,7 +85,7 @@ BOOT_OPTIONS="${BOOT_OPTIONS% }"
|
|
|
ac3a84 |
# command line with the machine ID we use, so that the machine ID remains
|
|
|
ac3a84 |
# stable, even during factory reset, in the initrd (where the system's machine
|
|
|
ac3a84 |
# ID is not directly accessible yet), and if the root file system is volatile.
|
|
|
ac3a84 |
-if [ "$ENTRY_TOKEN" = "$MACHINE_ID" ] && ! echo "$BOOT_OPTIONS" | grep -q "systemd.machine_id=$MACHINE_ID"; then
|
|
|
ac3a84 |
+if [ "$ENTRY_TOKEN" = "$MACHINE_ID" ] && ! echo "$BOOT_OPTIONS" | grep -q "systemd.machine_id="; then
|
|
|
ac3a84 |
BOOT_OPTIONS="$BOOT_OPTIONS systemd.machine_id=$MACHINE_ID"
|
|
|
ac3a84 |
fi
|
|
|
ac3a84 |
|