1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

kernel-install: restore priority of check for /boot/loader/entries

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2071034.

Based on 1b43f868934e971480249a6e0fa2f45da906ea2e.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-05-25 17:19:56 +02:00
parent 54201434be
commit 684585719b

View File

@ -107,8 +107,8 @@ fi
[ -z "$MACHINE_ID" ] && [ -f /etc/machine-info ] && source /etc/machine-info && MACHINE_ID="$KERNEL_INSTALL_MACHINE_ID"
[ -z "$MACHINE_ID" ] && MACHINE_ID="Default"
[ -z "$BOOT_ROOT" ] && for suff in "$MACHINE_ID" "loader/entries"; do
for pref in "/efi" "/boot" "/boot/efi" ; do
[ -z "$BOOT_ROOT" ] && for pref in "/efi" "/boot" "/boot/efi" ; do
for suff in "$MACHINE_ID" "loader/entries"; do
if [ -d "$pref/$suff" ]; then
BOOT_ROOT="$pref"
break 2