From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1W0bRa-0001oY-RV for mharc-grub-devel@gnu.org; Tue, 07 Jan 2014 13:32:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0bRQ-0001mZ-3g for grub-devel@gnu.org; Tue, 07 Jan 2014 13:32:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0bRF-0007w7-5H for grub-devel@gnu.org; Tue, 07 Jan 2014 13:31:52 -0500 Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:56445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0bRE-0007vx-T5 for grub-devel@gnu.org; Tue, 07 Jan 2014 13:31:41 -0500 Received: by mail-la0-f50.google.com with SMTP id el20so395451lab.37 for ; Tue, 07 Jan 2014 10:31:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=2iDLdSN8xX+iyl0IqiPHpTo+u1yXtgNAlv6xLmduM/E=; b=EqaUvOkh0GO9W9oCHxWBw2Ig0XB0cfh+3MCo0Fx/ElRTXidiyyFOqaGJoA8jaPdaXx 9AD9dso8yroG7Q9PmstpWO1gKF5yHPI+jNVGHmcvzGbHJh2DGYTON49JX5A7LNJ+7+Z6 do9pQb1hPPcVaCWKLl8BtjdM7j+DFHwE/enlmlp2euo7wgv/momOzd75iCsByJgsoNUo p52/orO8e4Ebzq4C+CrscHl7hcX4t4JgNscCdZgEesYxGWekRw/0Aww4/pQu5csXWiKn /wg3eWuMKho9h7xG1gGSstx+bMWEl0qurt24/RxCMMRukryNec0uUmfMUtK+ED5zIeRh vJ5g== X-Received: by 10.152.26.72 with SMTP id j8mr1498393lag.85.1389119499688; Tue, 07 Jan 2014 10:31:39 -0800 (PST) Received: from localhost.localdomain (ppp91-76-134-134.pppoe.mtu-net.ru. [91.76.134.134]) by mx.google.com with ESMTPSA id tc8sm45418996lbb.9.2014.01.07.10.31.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jan 2014 10:31:39 -0800 (PST) From: Andrey Borzenkov 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 Message-Id: <1389119495-4399-1-git-send-email-arvidjaar@gmail.com> X-Mailer: git-send-email 1.8.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::232 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2014 18:32:00 -0000 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)