Possible ofpath bug?

Roman Rakus rrakus at redhat.com
Thu Sep 24 01:13:36 EST 2009


On 08/28/2009 12:30 AM, Tony Breeds wrote:
> On Thu, Aug 27, 2009 at 03:01:39PM +0200, Roman Rakus wrote:
>    
>> I'm not sure where is the problem. Maybe in ofpath, maybe in kernel
>> and maybe in OpenFirmware. But when a user of B&W G3 Power Macintosh
>> tries to install yaboot he get following issue:
>>
>> Bootstrap partition is /dev/sda2
>> Install by `ybin' ->  ofpath finds and set boot device to
>> `/disk at 0:2', what makes system unbootable
>> Install by `ybin -o hd:2' ->  boot device is set to `hd:2', what
>> makes system bootable.
>>
>> I don't know how to find, if ofpath finds `/disk at 0:2' as the right
>> boot device. Any clues? Or any clue how to dig more?
>> This bug is open:
>> https://bugzilla.redhat.com/show_bug.cgi?id=514087
>>      
> As this is an ofpath/ybin problem I think if I can get a device-tree I can fix
> it.  I've asked the bug poster to supply one, and I'm looking around to see if
> I can find the h/w
>
> Thanks for the prod Roman.
>
>
> Yours Tony
>    
I have an idea what to do with it.
If we don't find the device name (set to empty string), we can check 
device-tree/aliases/disk and device-tree/aliases/hd. There is disk or 
hd. I don't what is when. But in 100% cases which I try, one of them 
directs to the right device.
What do you think about it?
RR


More information about the Yaboot-devel mailing list