Re: [PATCH] bless command

2009-08-29 Thread Michal Suchanek
2009/8/29 Bean : > On Sat, Aug 29, 2009 at 3:58 PM, Michal Suchanek wrote: >> 2009/8/29 Bean : >>> On Sat, Aug 29, 2009 at 2:27 PM, Vladimir 'phcoder' >>> Serbinenko wrote: > Actually, I think the correct handling is to first bless a boot > directory (storing the directory id in header), th

Re: [PATCH] bless command

2009-08-29 Thread Bean
On Sat, Aug 29, 2009 at 3:58 PM, Michal Suchanek wrote: > 2009/8/29 Bean : >> On Sat, Aug 29, 2009 at 2:27 PM, Vladimir 'phcoder' >> Serbinenko wrote: Actually, I think the correct handling is to first bless a boot directory (storing the directory id in header), then bless a boot file >>>

Re: [PATCH] bless command

2009-08-29 Thread Vladimir 'phcoder' Serbinenko
On Sat, Aug 29, 2009 at 9:58 AM, Michal Suchanek wrote: > 2009/8/29 Bean : >> On Sat, Aug 29, 2009 at 2:27 PM, Vladimir 'phcoder' >> Serbinenko wrote: Actually, I think the correct handling is to first bless a boot directory (storing the directory id in header), then bless a boot file >>>

Re: [PATCH] bless command

2009-08-29 Thread Vladimir 'phcoder' Serbinenko
> Hi, > > After more testing, I believe the booting process works like this: > > One important difference between openfirmware and efi is that > openfirmware stores file path in nvram, while efi stores device path. > The default boot file for openfirmware is like this: > > device:\\+tbxi > > Which

Re: [PATCH] bless command

2009-08-29 Thread Michal Suchanek
2009/8/29 Bean : > On Sat, Aug 29, 2009 at 2:27 PM, Vladimir 'phcoder' > Serbinenko wrote: >>> Actually, I think the correct handling is to first bless a boot >>> directory (storing the directory id in header), then bless a boot file >>> (add +tbxi attribute), that's why the bless command in OSX ne

Re: [PATCH] bless command

2009-08-29 Thread Bean
On Sat, Aug 29, 2009 at 2:27 PM, Vladimir 'phcoder' Serbinenko wrote: >> Actually, I think the correct handling is to first bless a boot >> directory (storing the directory id in header), then bless a boot file >> (add +tbxi attribute), that's why the bless command in OSX needs needs >> both --fold

Re: [PATCH] bless command

2009-08-28 Thread Vladimir 'phcoder' Serbinenko
>> Wouldn't it be reasonable to bless both the file and the directory? > > Hi, > > Actually, I think the correct handling is to first bless a boot > directory (storing the directory id in header), then bless a boot file > (add +tbxi attribute), that's why the bless command in OSX needs needs > both

Re: [PATCH] bless command

2009-08-28 Thread Bean
On Sat, Aug 29, 2009 at 6:59 AM, Michal Suchanek wrote: > Hello > > the bless command is nice. > > 2009/4/19 Vladimir Serbinenko : >> Thank you for the testing and info. >>> >>> Redundant info - >>> I checked the OSX bless utility, it requires both folder and file, or it >>> will not agree to bless

Re: [PATCH] bless command

2009-08-28 Thread Michal Suchanek
Hello the bless command is nice. 2009/4/19 Vladimir Serbinenko : > Thank you for the testing and info. >> >> Redundant info - >> I checked the OSX bless utility, it requires both folder and file, or it >> will not agree to bless the file. > > I'm nearly sure now that folder blessing (+tbxi attrib

Re: [PATCH] bless command

2009-08-28 Thread Vladimir 'phcoder' Serbinenko
On Sun, Jun 21, 2009 at 1:05 PM, Robert Millan wrote: > On Fri, Jun 19, 2009 at 01:53:18PM +0200, Vladimir 'phcoder' Serbinenko wrote: >> On Fri, Jun 19, 2009 at 8:08 AM, Peter Cros wrote: >> >> > Hi again, >> > >> > Could the hfspbless patch be updated and hopefully committted to provide >> > the

Re: [PATCH] bless command

2009-06-21 Thread Robert Millan
On Fri, Jun 19, 2009 at 01:53:18PM +0200, Vladimir 'phcoder' Serbinenko wrote: > On Fri, Jun 19, 2009 at 8:08 AM, Peter Cros wrote: > > > Hi again, > > > > Could the hfspbless patch be updated and hopefully committted to provide > > the hfspbless module as standard in grub2. > > > Attached to th

Re: [PATCH] bless command

2009-06-19 Thread Vladimir 'phcoder' Serbinenko
On Fri, Jun 19, 2009 at 6:15 PM, Pavel Roskin wrote: > On Fri, 2009-06-19 at 13:53 +0200, Vladimir 'phcoder' Serbinenko wrote: > > > Attached to this e-mail and on my personal git repository in branch > > bless the rediff. I was thinking of adding ppc mac support but haven't > > done it yet I th

Re: [PATCH] bless command

2009-06-19 Thread Pavel Roskin
On Fri, 2009-06-19 at 13:53 +0200, Vladimir 'phcoder' Serbinenko wrote: > Attached to this e-mail and on my personal git repository in branch > bless the rediff. I was thinking of adding ppc mac support but haven't > done it yet I think we can incorporate apple intel support without the > ppc cou

Re: [PATCH] bless command

2009-06-19 Thread Vladimir 'phcoder' Serbinenko
On Fri, Jun 19, 2009 at 8:08 AM, Peter Cros wrote: > Hi again, > > Could the hfspbless patch be updated and hopefully committted to provide > the hfspbless module as standard in grub2. > Attached to this e-mail and on my personal git repository in branch bless the rediff. I was thinking of addin

Re: [PATCH] bless command

2009-06-18 Thread Peter Cros
Hi again, Could the hfspbless patch be updated and hopefully committted to provide the hfspbless module as standard in grub2. It is valuable to enable auto-booting grub.efi installation on Apple Intel Mac efi and also where Mac OSX/refit is not installed. Potentially for automated grub.efi instal

Re: [PATCH] bless command

2009-04-20 Thread Peter Cros
My reply was delayed by network going down. On Mon, Apr 20, 2009 at 9:52 PM, Vladimir Serbinenko wrote: > > >> > The bootable cd can have both eltorito (bios) and grub2.efi > I like the grub.efi CD. > But what happens if you do something like: > blessed folder -> /test1 contains boot.efi > ble

Re: [PATCH] bless command

2009-04-20 Thread Vladimir Serbinenko
On Mon, Apr 20, 2009 at 11:17 AM, Peter Cros wrote: > Hi, > > On Mon, Apr 20, 2009 at 6:05 AM, Vladimir Serbinenko wrote: > >> Hello >> >>> >>> You can use the bootable CD of your favourite distro. I hope that >> grub2.efi will become a default bootloader to install on efi system for >> major lin

Re: [PATCH] bless command

2009-04-20 Thread Peter Cros
Hi, On Mon, Apr 20, 2009 at 6:05 AM, Vladimir Serbinenko wrote: > Hello > >> >> You can use the bootable CD of your favourite distro. I hope that > grub2.efi will become a default bootloader to install on efi system for > major linux distributions > The thought was just to avoid dependance on th

Re: [PATCH] bless command

2009-04-19 Thread Vladimir Serbinenko
Hello > 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

Re: [PATCH] bless command

2009-04-19 Thread Peter Cros
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 pp

Re: [PATCH] bless command

2009-04-19 Thread Vladimir Serbinenko
Thank you for the testing and info. > > Redundant info - > I checked the OSX bless utility, it requires both folder and file, or it > will not agree to bless the file. > I'm nearly sure now that folder blessing (+tbxi attribute) is used on ppc macs and file blessing on intel macs. Now the questio

Re: [PATCH] bless command

2009-04-19 Thread Peter Cros
bless.diff version 2. success. cleared all bless on hfsplus partition in OSX. grub> hfspbless (hd0,3)/efi/test/grub523.efi Back to OSX - Last login: Sun Apr 19 22:48:43 on console im81:~ pxw$ bless --info /Volumes/hfsp finderinfo[0]: 75 => Blessed System Folder is finderinfo[1]: 7857 =>

Re: [PATCH] bless command

2009-04-19 Thread Drew Rosen
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 tes

Re: [PATCH] bless command

2009-04-19 Thread Vladimir Serbinenko
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 finder

Re: [PATCH] bless command

2009-04-18 Thread Peter Cros
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 Sy

Re: [PATCH] bless command

2009-04-18 Thread Isaac Dupree
Vladimir Serbinenko wrote: > Syntax: > hfspbless > It works only on HFS+ volumes. Could it be named 'hfsplusbless' (or possibly 'hfs+bless') (I guess our current naming style involves no underscores or other word-separation)? For example, Linux `mount` calls the filesystem `hfsplus`, and I lik

Re: [PATCH] bless command

2009-04-18 Thread Vladimir Serbinenko
Sorry, forgot to attach the file On Sat, Apr 18, 2009 at 8:59 PM, Vladimir Serbinenko wrote: > 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