15a2072
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
15a2072
From: Peter Jones <pjones@redhat.com>
15a2072
Date: Mon, 16 Jul 2018 11:00:50 -0400
15a2072
Subject: [PATCH] blscfg: Get rid of the linuxefi/linux16/linux distinction
15a2072
15a2072
Signed-off-by: Peter Jones <pjones@redhat.com>
15a2072
---
15a2072
 grub-core/commands/blscfg.c | 14 +++-----------
15a2072
 1 file changed, 3 insertions(+), 11 deletions(-)
15a2072
15a2072
diff --git a/grub-core/commands/blscfg.c b/grub-core/commands/blscfg.c
15a2072
index 53676576ba5..c6addc4dc12 100644
15a2072
--- a/grub-core/commands/blscfg.c
15a2072
+++ b/grub-core/commands/blscfg.c
15a2072
@@ -43,14 +43,6 @@ GRUB_MOD_LICENSE ("GPLv3+");
15a2072
 #define GRUB_BOOT_DEVICE "($root)"
15a2072
 #endif
15a2072
 
15a2072
-#ifdef GRUB_MACHINE_EFI
15a2072
-#define GRUB_LINUX_CMD "linuxefi"
15a2072
-#define GRUB_INITRD_CMD "initrdefi"
15a2072
-#else
15a2072
-#define GRUB_LINUX_CMD "linux"
15a2072
-#define GRUB_INITRD_CMD "initrd"
15a2072
-#endif
15a2072
-
15a2072
 enum
15a2072
   {
15a2072
     PLATFORM_EFI,
15a2072
@@ -563,7 +555,7 @@ static void create_entry (struct bls_entry *entry)
15a2072
 		title, id);
15a2072
   if (initrds)
15a2072
     {
15a2072
-      int initrd_size = sizeof (GRUB_INITRD_CMD);
15a2072
+      int initrd_size = sizeof ("initrd");
15a2072
       char *tmp;
15a2072
 
15a2072
       for (i = 0; initrds != NULL && initrds[i] != NULL; i++)
15a2072
@@ -579,7 +571,7 @@ static void create_entry (struct bls_entry *entry)
15a2072
 	}
15a2072
 
15a2072
 
15a2072
-      tmp = grub_stpcpy(initrd, GRUB_INITRD_CMD);
15a2072
+      tmp = grub_stpcpy(initrd, "initrd ");
15a2072
       for (i = 0; initrds != NULL && initrds[i] != NULL; i++)
15a2072
 	{
15a2072
 	  grub_dprintf ("blscfg", "adding initrd %s\n", initrds[i]);
15a2072
@@ -592,7 +584,7 @@ static void create_entry (struct bls_entry *entry)
15a2072
   src = grub_xasprintf ("load_video\n"
15a2072
 			"set gfx_payload=keep\n"
15a2072
 			"insmod gzio\n"
15a2072
-			GRUB_LINUX_CMD " %s%s%s%s\n"
15a2072
+			"linux %s%s%s%s\n"
15a2072
 			"%s",
15a2072
 			GRUB_BOOT_DEVICE, clinux, options ? " " : "", options ? options : "",
15a2072
 			initrd ? initrd : "");