Skip to content

Commit

Permalink
kernel-install: Remove "Default" from list of suffixes checked
Browse files Browse the repository at this point in the history
This was an undocumented change in behavior introduced by
9e82a74. Previously, we only
checked for "Default" if we didn't find a machine ID. Let's make
sure we keep the previous behavior intact.
  • Loading branch information
DaanDeMeyer committed Dec 15, 2021
1 parent 372e859 commit 447a822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel-install/kernel-install
Expand Up @@ -93,7 +93,7 @@ fi
[ -z "$MACHINE_ID" ] && [ -f /etc/machine-id ] && [ "$(stat -fc %T /etc/machine-id)" != "tmpfs" ] && read -r MACHINE_ID < /etc/machine-id
[ -z "$MACHINE_ID" ] && MACHINE_ID="Default"

[ -z "$BOOT_ROOT" ] && for suff in "$MACHINE_ID" "Default" "loader/entries"; do
[ -z "$BOOT_ROOT" ] && for suff in "$MACHINE_ID" "loader/entries"; do
for pref in "/efi" "/boot/efi" "/boot"; do
if [ -d "$pref/$suff" ]; then
BOOT_ROOT="$pref"
Expand Down

0 comments on commit 447a822

Please sign in to comment.