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 <[email protected]> --- grub-core/commands/blsuki.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/commands/blsuki.c b/grub-core/commands/blsuki.c index c107f4bb3..e8e6aeebc 100644 --- a/grub-core/commands/blsuki.c +++ b/grub-core/commands/blsuki.c @@ -1231,7 +1231,7 @@ blsuki_find_entry (struct find_entry_info *info, bool enable_fallback, enum blsu tmp = blsuki_update_boot_device (default_dir); tmp = grub_stpcpy (tmp, cmd_dir); - blsuki_set_find_entry_info (info, default_dir, NULL, cmd_type); + blsuki_set_find_entry_info (info, default_dir, info->devid, cmd_type); grub_dprintf ("blsuki", "Entries weren't found in %s, fallback to %s\n", read_entry_info.dirname, info->dirname); fallback = true; -- 2.51.1 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
