Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MtQP2-0007NA-VW for mharc-grub-devel@gnu.org; Thu, 01 Oct 2009 14:29:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtQP0-0007Ii-Pl for grub-devel@gnu.org; Thu, 01 Oct 2009 14:29:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtQOw-00077A-0m for grub-devel@gnu.org; Thu, 01 Oct 2009 14:29:18 -0400 Received: from [199.232.76.173] (port=35251 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtQOv-00076u-Tl for grub-devel@gnu.org; Thu, 01 Oct 2009 14:29:13 -0400 Received: from mail-bw0-f220.google.com ([209.85.218.220]:41289) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtQOv-0007NZ-FU for grub-devel@gnu.org; Thu, 01 Oct 2009 14:29:13 -0400 Received: by bwz20 with SMTP id 20so388260bwz.42 for ; Thu, 01 Oct 2009 11:29:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=vunDty576vCoaCwgtfXdfee8fN6GxiLldqDuv5HJ120=; b=pmP5Ppl90v50MdMZdU6xpeKLqnaNjilpnx1So6+BtiLBXjF+7vmW7DFSwwrg6D/jpv eV2Pg9/0MWj7RtXY9mABRgwnEa5i+AvrC+CF5RrZP9/KWD9OjBzDcKlKgythfjrgyXp0 N6TFG3y3vasL8Wy6FG8ykWe4oQuRQDlUZiFXA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=CJawb25W7K3jprRChjF9CohPhT2qp0ZOHW2817mBbBz5OhogVWnGhCrPeVnE5StHll 9vgBeKnGAXAU7v42+kuZ+Chr+b89dWtWT7MIuMDyxvKSi8z733hLJrHqlSMz0oQbWIKj hGIxhjlh2Licde++H1TYa8luN/0aZVzfXmEXU= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.217.8 with SMTP id p8mr1466502fgg.73.1254421751763; Thu, 01 Oct 2009 11:29:11 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Oct 2009 20:29:11 +0200 X-Google-Sender-Auth: 05568510e251d720 Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Creating an (Apple) EFI bootable media X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2009 18:29:19 -0000 2009/10/1 Bean : > On Thu, Oct 1, 2009 at 11:17 PM, Michal Suchanek wrote: >> Hello >> >> Is there a way to reproducibly create Grub bootable media (CD, USB >> stick) that can be used with Apple efi? >> >> I tried some ways of blessing the boot loader which I found on the net >> but none works. > > Hi, > > You should format it as GPT, MBR may not work. The fs of choice is > hfsplus, although I heard someone have successful boot with FAT. > > To bless the disk, use something like this: (only available for hfsplus) > > sudo bless --folder=/Volumes/USBDISK --file=/Volumes/USBDISK/efi/grub/grub.efi That's what I use and what can be found on varoius forums and wikis. It works neither with rEFIt nor grub for me. Perhaps I am not using the = character, I should check that but bless does not report any error and it actually changes the information (there is another bless option to show the state). > > bless writes the location of boot file to the hfsplus header. bless > doesn't work on FAT. > > At startup, you need to press the Option key to show startup disk, and > select the usb disk. The disk does not show in the options offered by the firmware. > > The following command writes the boot device to nvram so that it's > used by default: > > sudo bless --folder=/Volumes/USBDISK > --file=/Volumes/USBDISK/efi/grub/grub.efi --setBoot As I understand it this is not required for hfsplus, only for fat which cannot be blessed permanently. It makes no difference either way. > >> >> Also the default core image probably lacks some essential parts. I >> managed to load it as rEFIt shell command by placing it in the tools >> directory but it complained about "prefix" not being defined and I >> seemingly had no commands - the help command was not available, and >> pressing tab did not show anything. > > You can add the command to the generated EFI image with grub-mkimage, > here are the list of modules I usually use: > > ./grub-mkimage -d . -o grub64.efi minicmd part_gpt part_msdos > part_apple fat ext2 hfsplus hfs ntfs reiserfs xfs iso9660 udf ls > search loopback linux chain reboot halt appleldr help configfile > hexdump loadbios memrw fixvideo crc sh video efi_fb gfxterm font png > coreui loadcfg menutest gfxmenu textmenu Hmm, I'm probably missing the shell or something. Can't the installation pre-create an efi image that contains most options? AFAIK the size of the image is not of much concern on efi so creating a mostly complete image would simplify things. Thanks Michal