]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
kernel-install: prefer /boot over /boot/efi for $BOOT_ROOT
authorAdam Williamson <awilliam@redhat.com>
Wed, 5 Jan 2022 22:07:14 +0000 (14:07 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 Jan 2022 14:15:04 +0000 (15:15 +0100)
This restores the preference order from before 9e82a74. The code
previous to that change 'preferred' /boot over /boot/efi; that
commit changed it to check /boot/efi before checking /boot.
Changing this precedence could (and did, for me) have unexpected
effects - it seems safer to leave it how it was.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
src/kernel-install/kernel-install

index b358b03b2ffc27d77c0d9ce72b384778dad640ca..d85852532b634864272fb69ac883a34f048f8e9b 100755 (executable)
@@ -108,7 +108,7 @@ fi
 [ -z "$MACHINE_ID" ] && MACHINE_ID="Default"
 
 [ -z "$BOOT_ROOT" ] && for suff in "$MACHINE_ID" "loader/entries"; do
-    for pref in "/efi" "/boot/efi" "/boot"; do
+    for pref in "/efi" "/boot" "/boot/efi" ; do
         if [ -d "$pref/$suff" ]; then
             BOOT_ROOT="$pref"
             break 2