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