Blame SOURCES/0271-blscfg-Don-t-root-device-in-emu-builds.patch

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