Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LvYyV-0001Yv-4N for mharc-grub-devel@gnu.org; Sun, 19 Apr 2009 11:30:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvYyT-0001Y3-73 for grub-devel@gnu.org; Sun, 19 Apr 2009 11:30:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvYyO-0001WD-GR for grub-devel@gnu.org; Sun, 19 Apr 2009 11:30:28 -0400 Received: from [199.232.76.173] (port=43534 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvYyO-0001W3-6x for grub-devel@gnu.org; Sun, 19 Apr 2009 11:30:24 -0400 Received: from rv-out-0708.google.com ([209.85.198.247]:32374) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LvYyN-0002O8-8G for grub-devel@gnu.org; Sun, 19 Apr 2009 11:30:23 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1853303rvb.6 for ; Sun, 19 Apr 2009 08:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=R5qgGcVMlunjIogzND3L6mUiHoRvS4nx020cJXcSSMA=; b=Bkel6d3CgRKKlfN3pkpVs7/BU5eySxpFd5RfcVaaat4RZaQkXcuOawHl1UUyyse5gs Tw8co9HVQ28QYf1NmE57hyw7zRRQrmM61+mDXL2zgb9FVm4upE0JMM37Dfl2UUlq/bFm MdKxw9k3A9As6M+8minVsRDqdcz/Q18u9BCYg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=kO3+pQq1SScZ1olcuWf8mf7BTI6sGiDtLaZciiQScLy5pOMJ1RsjbnoDrUm1hq0Aeh 7cbXH6IMnwwSuj25F/Iv1d8QxSe8QPZL/T430UIpzE+SBEc+gVOMeYOmIH8trmwNbkE9 zsNBx7UTmYg5FnEFtfeTaNdarORwRumA8o/wM= MIME-Version: 1.0 Received: by 10.143.41.5 with SMTP id t5mr4096000wfj.134.1240155022154; Sun, 19 Apr 2009 08:30:22 -0700 (PDT) In-Reply-To: References: <48f46e890904182151t55ad5e29sd7a280c62574ba40@mail.gmail.com> <48f46e890904190626l78773fdbp17f4ddd18566cdec@mail.gmail.com> Date: Mon, 20 Apr 2009 01:30:22 +1000 Message-ID: <48f46e890904190830m3d23f7dqdbdf0227a9f580cf@mail.gmail.com> From: Peter Cros To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=001636e8ffc58fddd80467ea17ca X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] bless command 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: Sun, 19 Apr 2009 15:30:29 -0000 --001636e8ffc58fddd80467ea17ca Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks that is going to be very useful. Just some further comment from the little I know - On Mon, Apr 20, 2009 at 12:14 AM, Vladimir Serbinenko wrote: > >> > Now the question is how we do it. We can either keep the current syntax or > IMO it's better to have two commands: > intelmacbless and ppcmacbless both accepting file as an argument. First one > updates finderInfo[1] and the second one updates finderInfo[0] and sets > filetype of given file to tbxi and if any other file has the type tbxi in > the same directory then change it to any other value (e.g. tbxj) > The finderinfo[1] file blessing does seem the best for intel mac, but just based on my imac81 test with current EFI. >> Now all we need is --setBoot to make grub.efi the default boot, no Option >> key required. >> > In my todo. Thanks to ams I have all the needed info now > >> Oh, and how do we get grub.efi booted to bless itself - the only way I >> know at present is to use a rEFIt CD, which is bootable by Apple EFI. >> > I don't understand your question but hfspbless works in grub-emu too. > Do you mean run grub-emu as part of a linux installation to bless grub.ef? It seems to leave the problem of booting the linux installer, which is easy to do from grub.efi - if it is blessed. At present we install grub.efi manually, using only grub-mkimage to build grub.efi, without using other grub utilities, and mostly just use preloaded modules. Here is some more info for the intel mac - Further checking shows that Apple EFI will detect and boot an unblessed file named boot.efi but only if the enclosing folder is blessed. Will not boot unblessed grub.efi in the same folder. im81:~ pxw$ bless --info /Volumes/hfsp finderinfo[0]: 7891 => Blessed System Folder is /Volumes/hfsp/efi/test finderinfo[1]: 0 => No Blessed System File finderinfo[2]: 0 => Open-folder linked list empty finderinfo[3]: 0 => No OS 9 + X blessed 9 folder finderinfo[4]: 0 => Unused field unset finderinfo[5]: 7891 => OS X blessed folder is /Volumes/hfsp/efi/test 64-bit VSDB volume id: 0x0F87F7680B9C5211 im81:~ pxw$ ls /Volumes/hfsp/efi/test boot.efi grub.cfg grub523.efi grub523.icns grub64.icns im81:~ pxw$ That boots boot.efi using the Option key. For OSX boot.efi - im81:~ pxw$ bless --info / finderinfo[0]: 149 => Blessed System Folder is /System/Library/CoreServices finderinfo[1]: 297081 => Blessed System File is /System/Library/CoreServices/boot.efi finderinfo[2]: 0 => Open-folder linked list empty finderinfo[3]: 0 => No OS 9 + X blessed 9 folder finderinfo[4]: 0 => Unused field unset finderinfo[5]: 149 => OS X blessed folder is /System/Library/CoreServices 64-bit VSDB volume id: 0x0F8CB2A6A4C456E8 > >>>> >> -- >> Cros (pxw) >> >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel >> >> > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > -- Cros (pxw) --001636e8ffc58fddd80467ea17ca Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks that is going to be very useful.

Just some = further comment from the little I know -

= On Mon, Apr 20, 2009 at 12:14 AM, Vladimir Serbinenko <= ;phcoder@gmail.com> wrot= e:

=A0
Now = the question is how we do it. We can either keep the current syntax or IMO = it's better to have two commands:
intelmacbless and ppcmacbless both accepting file as an argument. First one= updates finderInfo[1] and the second one updates finderInfo[0] and sets fi= letype of given file to tbxi and if any other file has the type tbxi in the= same directory then change it to any other value (e.g. tbxj)
=A0
The finderinfo[1] file blessing does = seem the best for intel mac, but just based on my imac81 test with current = EFI.


Now all we need is =A0--setBoot t= o make grub.efi the default boot, no Option key required.
In my todo. Thanks to ams I have all the= needed info now
Oh, and how do we get grub.efi booted to bless itself - the only way I= know at present is to use a rEFIt CD, which is bootable by Apple EFI.
<= /div>
I don't understand your = question but hfspbless works in grub-emu too.

Do you mean run grub-emu as part of a linux installati= on to bless grub.ef?
It seems to leave the problem of booting the linux installer, which is= easy to do from grub.efi - if it is blessed.
At present we insta= ll grub.efi manually, using only grub-mkimage to build grub.efi, without us= ing other grub utilities, and mostly just use preloaded modules.


Here is some more info for the inte= l mac -

Further checking shows that Apple EFI will= detect and boot an unblessed file named boot.efi but only if the enclosing= folder is blessed.
Will not boot unblessed grub.efi in the same folder.

im81:~ pxw$ bless --info /Volumes/hfsp=A0
finderinfo[0]: = =A0 7891 =3D> Blessed System Folder is /Volumes/hfsp/efi/test
= finderinfo[1]: =A0 =A0 =A00 =3D> No Blessed System File
finderinfo[2]: =A0 =A0 =A00 =3D> Open-folder linked list empty
finderinfo[3]: =A0 =A0 =A00 =3D> No OS 9 + X blessed 9 folder
finderinfo[4]: =A0 =A0 =A00 =3D> Unused field unset
find= erinfo[5]: =A0 7891 =3D> OS X blessed folder is /Volumes/hfsp/efi/test
64-bit VSDB volume id: =A00x0F87F7680B9C5211

= im81:~ pxw$ ls /Volumes/hfsp/efi/test=A0
boot.efi grub.cfg grub523.efi grub523.icns grub64.icns
im81:~ pxw$=A0
That boots boot.efi using the Option key.=A0<= /div>

For OSX boot.efi -
im81:~ pxw$ bless --i= nfo /
finderinfo[0]: =A0 =A0149 =3D> Blessed System Folder is = /System/Library/CoreServices
finderinfo[1]: 297081 =3D> Blessed System File is /System/Library/C= oreServices/boot.efi
finderinfo[2]: =A0 =A0 =A00 =3D> Open-fol= der linked list empty
finderinfo[3]: =A0 =A0 =A00 =3D> No OS 9= + X blessed 9 folder
finderinfo[4]: =A0 =A0 =A00 =3D> Unused field unset
finde= rinfo[5]: =A0 =A0149 =3D> OS X blessed folder is /System/Library/CoreSer= vices
64-bit VSDB volume id: =A00x0F8CB2A6A4C456E8

<= /div>

--
Cros (pxw)



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org<= /a>
http://lists.gnu.org/mailman/listinfo/grub-devel



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel




--
Cros (pxw)

<= br> --001636e8ffc58fddd80467ea17ca--