From: Adam Williamson Date: Wed, 5 Jan 2022 22:07:14 +0000 (-0800) Subject: kernel-install: prefer /boot over /boot/efi for $BOOT_ROOT X-Git-Tag: v251-rc1~574 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5307e173bf86d695fe85b8e15e91126e8618a14;p=thirdparty%2Fsystemd.git kernel-install: prefer /boot over /boot/efi for $BOOT_ROOT 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 --- diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install index b358b03b2ff..d85852532b6 100755 --- a/src/kernel-install/kernel-install +++ b/src/kernel-install/kernel-install @@ -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