b35c50
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
b35c50
From: Robbie Harwood <rharwood@redhat.com>
b35c50
Date: Thu, 25 Aug 2022 17:57:55 -0400
b35c50
Subject: [PATCH] blscfg: Don't root device in emu builds
b35c50
b35c50
Otherwise, we end up looking for kernel/initrd in /boot/boot which
b35c50
doesn't work at all.  Non-emu builds need to be looking in
b35c50
($root)/boot/, which is what this is for.
b35c50
b35c50
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
b35c50
---
b35c50
 grub-core/commands/blscfg.c | 2 +-
b35c50
 1 file changed, 1 insertion(+), 1 deletion(-)
b35c50
b35c50
diff --git a/grub-core/commands/blscfg.c b/grub-core/commands/blscfg.c
b35c50
index e907a6a5d2..dbd0899acf 100644
b35c50
--- a/grub-core/commands/blscfg.c
b35c50
+++ b/grub-core/commands/blscfg.c
b35c50
@@ -41,7 +41,7 @@ GRUB_MOD_LICENSE ("GPLv3+");
b35c50
 
b35c50
 #define GRUB_BLS_CONFIG_PATH "/loader/entries/"
b35c50
 #ifdef GRUB_MACHINE_EMU
b35c50
-#define GRUB_BOOT_DEVICE "/boot"
b35c50
+#define GRUB_BOOT_DEVICE ""
b35c50
 #else
b35c50
 #define GRUB_BOOT_DEVICE "($root)"
b35c50
 #endif