You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grub2/SOURCES/0207-blscfg-Get-rid-of-the-...

57 lines
1.7 KiB

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