From d19a74a17fd92361921a1e8903321d4eac56bcb4 Mon Sep 17 00:00:00 2001 From: Radoslav Kolev Date: Fri, 19 Dec 2025 16:25:01 +0200 Subject: [PATCH] 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 Reviewed-by: Daniel Kiper --- 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;