naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
8d419f
From 3fae5c22831288c075e371e67ecc91968ab60d63 Mon Sep 17 00:00:00 2001
8d419f
From: Michal Sekletar <msekleta@redhat.com>
8d419f
Date: Thu, 17 Mar 2022 12:37:57 +0100
8d419f
Subject: [PATCH] Revert "kernel-install: prefer /boot over /boot/efi for
8d419f
 $BOOT_ROOT"
8d419f
8d419f
This reverts commit d0e98b7a1211412dccfcf4dcd2cc0772ac70b304.
8d419f
8d419f
Related: #2065061
8d419f
8d419f
[msekleta: this revert is done in order to make backporting easier,
8d419f
patch will be reapplied later.]
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 d85852532b..b358b03b2f 100755
8d419f
--- a/src/kernel-install/kernel-install
8d419f
+++ b/src/kernel-install/kernel-install
8d419f
@@ -108,7 +108,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" "/boot/efi" ; do
8d419f
+    for pref in "/efi" "/boot/efi" "/boot"; do
8d419f
         if [ -d "$pref/$suff" ]; then
8d419f
             BOOT_ROOT="$pref"
8d419f
             break 2