Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LvV9x-0001hg-7m for mharc-grub-devel@gnu.org; Sun, 19 Apr 2009 07:26:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvV9r-0001gR-2d for grub-devel@gnu.org; Sun, 19 Apr 2009 07:25:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvV9l-0001eN-Oq for grub-devel@gnu.org; Sun, 19 Apr 2009 07:25:58 -0400 Received: from [199.232.76.173] (port=56238 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvV9k-0001e8-H6 for grub-devel@gnu.org; Sun, 19 Apr 2009 07:25:53 -0400 Received: from asmtpout015.mac.com ([17.148.16.90]:61697) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LvV9j-000105-Mt for grub-devel@gnu.org; Sun, 19 Apr 2009 07:25:52 -0400 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_neT6esrQJuPhG1S4Adi04A)" Received: from [192.168.1.7] (pool-98-112-63-147.lsanca.fios.verizon.net [98.112.63.147]) by asmtp015.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KIC00IMCIF08V20@asmtp015.mac.com> for grub-devel@gnu.org; Sun, 19 Apr 2009 04:25:49 -0700 (PDT) Message-id: <93B69CA1-5015-444D-86C5-AF500C275602@mac.com> From: Drew Rosen To: The development of GRUB 2 In-reply-to: X-Mailer: iPhone Mail (5H11) Date: Sun, 19 Apr 2009 04:25:44 -0700 References: <48f46e890904182151t55ad5e29sd7a280c62574ba40@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) 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 11:26:00 -0000 --Boundary_(ID_neT6esrQJuPhG1S4Adi04A) Content-type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-transfer-encoding: 7BIT I'd also like to help test this as I have a first gen macintel mac pro that needs to run centos. It was difficult to get a 2nd gen machine to see the os drive last time I loaded centos... --- Drew Rosen On Apr 19, 2009, at 3:50 AM, Vladimir Serbinenko wrote: > Hello, thank you for the testing. Two concepts together (system > folder and system file) are clearly redundant. I thought that intel > macs look which folder is blessed and load boot.efi file from this > directory. Here I attach a patch which updates finderinfo[0] when > argument is a directory and finderinfo[1] when argument is a file. > Can you do a test and tell me which concept is really used by intel > macs? When doing tests don't forget to hold option key and select > your testing partition. I will do a similar test on my ppc mac > > On Sun, Apr 19, 2009 at 6:51 AM, Peter Cros wrote: > Hi, > > Tested and works on Apple imac81 with Mac OSX 10.5, patch applied to > r 2074 > > grub> hfspbless (hd0,3)/efi > > Last login: Sun Apr 19 14:30:23 on console > im81:~ pxw$ bless --info /Volumes/hfsp > finderinfo[0]: 52 => Blessed System Folder is /Volumes/hfsp/efi > 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]: 0 => No OS 9 + X blessed X folder > 64-bit VSDB volume id: 0x0F87F7680B9C5211 > im81:~ pxw$ > > Now it just needs to bless the file in order to boot from grub.efi > on Apple EFI > > hfspbless > > This would be VERY useful, making grub.efi boot possible on Apple > Mac without needing Mac OSX or refit. > > hfspbless is fine for a name > > > 2009/4/19 Vladimir Serbinenko > Hello, due to request by ams I wrote this. It's an analog of "bless" > command available under OSX rewritten using grub2 fs functions and > according to apple specification of hfs+ on-disk format. This > command only update the blessed folder on a partition it doesn't > change which drive is used for booting. The later will be a separate > command. Also you can choose which volume to boot from by holding > option key. Syntax: > hfspbless > It works only on HFS+ volumes. Also due to the lack of hardware I > wasn't unable to test this "in vivo" > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > > > > -- > 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 --Boundary_(ID_neT6esrQJuPhG1S4Adi04A) Content-type: text/html; charset=utf-8 Content-transfer-encoding: quoted-printable
I'd also like to help test this as = I have a first gen macintel mac pro that needs to run centos. It was = difficult to get a 2nd gen machine to see the os drive last time I = loaded centos...

---
Drew = Rosen

On Apr 19, 2009, at 3:50 AM, = Vladimir Serbinenko <phcoder@gmail.com> = wrote:

Hello, = thank you for the testing. Two concepts together (system folder and = system file) are clearly redundant. I thought that intel macs look which = folder is blessed and load boot.efi file from this directory. Here I = attach a patch which updates finderinfo[0] when argument is a directory = and finderinfo[1] when argument is a file. Can you do a test and tell me = which concept is really used by intel macs? When doing tests don't = forget to hold option key and select your testing partition. I will do a = similar test on my ppc mac

On Sun, Apr 19, 2009 at 6:51 AM, Peter = Cros <pxwpxw8@gmail.com> = wrote:
Hi,

Tested and works on Apple imac81 with = Mac OSX 10.5, patch applied to r 2074

grub> = hfspbless (hd0,3)/efi

Last login: Sun Apr 19 = 14:30:23 on console
im81:~ pxw$ bless --info = /Volumes/hfsp 
finderinfo[0]:     52 =3D> = Blessed System Folder is /Volumes/hfsp/efi
finderinfo[1]: =      0 =3D> No Blessed System = File
finderinfo[2]:      0 =3D> Open-folder = linked list empty
finderinfo[3]:      0 =3D> No OS 9 + X blessed 9 = folder
finderinfo[4]:      0 =3D> Unused field = unset
finderinfo[5]:      0 =3D> No OS 9 + X = blessed X folder
64-bit VSDB volume id: =  0x0F87F7680B9C5211
im81:~ pxw$ 

Now it just needs to = bless the file in order to boot from grub.efi on Apple = EFI

hfspbless <DIRECTORY> = <FILE>

This would be VERY useful, making = grub.efi boot possible on Apple Mac without needing Mac OSX or = refit.

hfspbless is fine for a = name


2009/4/19 = Vladimir Serbinenko <phcoder@gmail.com>
Hello, due to request by ams I wrote this. It's an analog of "bless" = command available under OSX rewritten using grub2 fs functions and = according to apple specification of hfs+ on-disk format. This command = only update the blessed folder on a partition it doesn't change which = drive is used for booting. The later will be a separate command. Also = you can choose which volume to boot from by holding option key. = Syntax:
hfspbless <DIRECTORY>
It works only on HFS+ volumes. Also due to = the lack of hardware I wasn't unable to test this "in = vivo"

 

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




--
Cros (pxw)



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


<bless.diff>
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
= http://lists.gnu= .org/mailman/listinfo/grub-devel
<= /html>= --Boundary_(ID_neT6esrQJuPhG1S4Adi04A)--