grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@gmail.com>
To: grub-devel@gnu.org
Subject: [PATCH] add part_apple to EFI rescue image to fix missing prefix
Date: Tue,  7 Jan 2014 22:31:35 +0400	[thread overview]
Message-ID: <1389119495-4399-1-git-send-email-arvidjaar@gmail.com> (raw)

On Mac rescue image is booted from HFS+ partition, so bootpath looks like
/ACPI(a0341d0,0)/PCI(1,1f)/ATAPI(0,0,0)/HD(3,5d1,ca3,0000000000000000,20,0)/EndEntire

grub fails to find device for this path because it cannot scan partition
table. The simplest fix is to add part_apple by default.

---
 util/grub-mkrescue.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c
index 0d03e55..30bb701 100644
--- a/util/grub-mkrescue.c
+++ b/util/grub-mkrescue.c
@@ -316,9 +316,11 @@ make_image_fwdisk_abs (enum grub_install_plat plat,
   fclose (load_cfg_f);
 
   grub_install_push_module ("iso9660");
+  grub_install_push_module ("part_apple");
   grub_install_make_image_wrap (source_dirs[plat], "()/boot/grub", output,
 				0, load_cfg, mkimage_target, 0);
   grub_install_pop_module ();
+  grub_install_pop_module ();
 }
 
 static int
-- 
tg: (e7cfa8d..) u/apple-boot-path (depends on: master)


             reply	other threads:[~2014-01-07 18:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-07 18:31 Andrey Borzenkov [this message]
2014-01-11 14:58 ` [PATCH] add part_apple to EFI rescue image to fix missing prefix Vladimir 'φ-coder/phcoder' Serbinenko
2014-01-12  7:31   ` Andrey Borzenkov
2014-01-12 11:08     ` Vladimir 'φ-coder/phcoder' Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1389119495-4399-1-git-send-email-arvidjaar@gmail.com \
    --to=arvidjaar@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).