teknoraver / rpms / systemd

Forked from rpms/systemd a month ago
Clone

Blame SOURCES/0042-kernel-install-prefer-boot-over-boot-efi-for-BOOT_RO.patch

aa0848
From 9e3e7a50f92ee2f315a22f412f33f60d1f100e5a Mon Sep 17 00:00:00 2001
aa0848
From: Adam Williamson <awilliam@redhat.com>
aa0848
Date: Wed, 5 Jan 2022 14:07:14 -0800
aa0848
Subject: [PATCH] kernel-install: prefer /boot over /boot/efi for $BOOT_ROOT
aa0848
aa0848
This restores the preference order from before 9e82a74. The code
aa0848
previous to that change 'preferred' /boot over /boot/efi; that
aa0848
commit changed it to check /boot/efi before checking /boot.
aa0848
Changing this precedence could (and did, for me) have unexpected
aa0848
effects - it seems safer to leave it how it was.
aa0848
aa0848
Signed-off-by: Adam Williamson <awilliam@redhat.com>
aa0848
(cherry picked from commit a5307e173bf86d695fe85b8e15e91126e8618a14)
aa0848
aa0848
Related: #2065061
aa0848
---
aa0848
 src/kernel-install/kernel-install | 2 +-
aa0848
 1 file changed, 1 insertion(+), 1 deletion(-)
aa0848
aa0848
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install
aa0848
index 097d6557f2..e56483ef96 100755
aa0848
--- a/src/kernel-install/kernel-install
aa0848
+++ b/src/kernel-install/kernel-install
aa0848
@@ -97,7 +97,7 @@ fi
aa0848
 [ -z "$MACHINE_ID" ] && MACHINE_ID="Default"
aa0848
 
aa0848
 [ -z "$BOOT_ROOT" ] && for suff in "$MACHINE_ID" "loader/entries"; do
aa0848
-    for pref in "/efi" "/boot/efi" "/boot"; do
aa0848
+    for pref in "/efi" "/boot" "/boot/efi" ; do
aa0848
         if [ -d "$pref/$suff" ]; then
aa0848
             BOOT_ROOT="$pref"
aa0848
             break 2