Skip to content

Commit d19a74a

Browse files
radolinDaniel Kiper
authored andcommitted
blsuki: Use specified device in case of fallback
Currently if the fallback option is enabled and no files are found in the specified directory it searches the default (loader/conf) directory but always in the device set by the root environment variable. It makes more sense and also the comment in the code implies, that the default directory on the current device should be searched. Signed-off-by: Radoslav Kolev <radoslav.kolev@suse.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
1 parent 242816e commit d19a74a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grub-core/commands/blsuki.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ blsuki_find_entry (struct find_entry_info *info, bool enable_fallback, enum blsu
12311231
tmp = blsuki_update_boot_device (default_dir);
12321232
tmp = grub_stpcpy (tmp, cmd_dir);
12331233

1234-
blsuki_set_find_entry_info (info, default_dir, NULL, cmd_type);
1234+
blsuki_set_find_entry_info (info, default_dir, info->devid, cmd_type);
12351235
grub_dprintf ("blsuki", "Entries weren't found in %s, fallback to %s\n",
12361236
read_entry_info.dirname, info->dirname);
12371237
fallback = true;

0 commit comments

Comments
 (0)