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