|
|
f725e3 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
f725e3 |
From: Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
f725e3 |
Date: Sun, 12 Jan 2014 15:29:21 +0400
|
|
|
f725e3 |
Subject: [PATCH] add part_apple to EFI rescue image to fix missing prefix
|
|
|
f725e3 |
|
|
|
f725e3 |
On Mac rescue image is booted from HFS+ partition, so bootpath looks like
|
|
|
f725e3 |
/ACPI(a0341d0,0)/PCI(1,1f)/ATAPI(0,0,0)/HD(3,5d1,ca3,0000000000000000,20,0)/EndEntire
|
|
|
f725e3 |
|
|
|
f725e3 |
grub fails to find device for this path because it cannot scan partition
|
|
|
f725e3 |
table. The simplest fix is to add part_apple by default.
|
|
|
f725e3 |
---
|
|
|
f725e3 |
util/grub-mkrescue.c | 6 ++++++
|
|
|
f725e3 |
1 file changed, 6 insertions(+)
|
|
|
f725e3 |
|
|
|
f725e3 |
diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c
|
|
|
f725e3 |
index 0d03e55d20c..34e0b7affb1 100644
|
|
|
f725e3 |
--- a/util/grub-mkrescue.c
|
|
|
f725e3 |
+++ b/util/grub-mkrescue.c
|
|
|
f725e3 |
@@ -653,11 +653,15 @@ main (int argc, char *argv[])
|
|
|
f725e3 |
make_image_fwdisk_abs (GRUB_INSTALL_PLATFORM_IA64_EFI, "ia64-efi", imgname);
|
|
|
f725e3 |
free (imgname);
|
|
|
f725e3 |
|
|
|
f725e3 |
+ grub_install_push_module ("part_apple");
|
|
|
f725e3 |
img64 = grub_util_path_concat (2, efidir_efi_boot, "bootx64.efi");
|
|
|
f725e3 |
make_image_fwdisk_abs (GRUB_INSTALL_PLATFORM_X86_64_EFI, "x86_64-efi", img64);
|
|
|
f725e3 |
+ grub_install_pop_module ();
|
|
|
f725e3 |
|
|
|
f725e3 |
+ grub_install_push_module ("part_apple");
|
|
|
f725e3 |
img32 = grub_util_path_concat (2, efidir_efi_boot, "bootia32.efi");
|
|
|
f725e3 |
make_image_fwdisk_abs (GRUB_INSTALL_PLATFORM_I386_EFI, "i386-efi", img32);
|
|
|
f725e3 |
+ grub_install_pop_module ();
|
|
|
f725e3 |
|
|
|
f725e3 |
imgname = grub_util_path_concat (2, efidir_efi_boot, "bootarm.efi");
|
|
|
f725e3 |
make_image_fwdisk_abs (GRUB_INSTALL_PLATFORM_ARM_EFI, "arm-efi", imgname);
|
|
|
f725e3 |
@@ -707,7 +711,9 @@ main (int argc, char *argv[])
|
|
|
f725e3 |
free (efidir);
|
|
|
f725e3 |
}
|
|
|
f725e3 |
|
|
|
f725e3 |
+ grub_install_push_module ("part_apple");
|
|
|
f725e3 |
make_image_fwdisk (GRUB_INSTALL_PLATFORM_POWERPC_IEEE1275, "powerpc-ieee1275", "powerpc-ieee1275/core.elf");
|
|
|
f725e3 |
+ grub_install_pop_module ();
|
|
|
f725e3 |
|
|
|
f725e3 |
if (source_dirs[GRUB_INSTALL_PLATFORM_POWERPC_IEEE1275])
|
|
|
f725e3 |
{
|