[PATCH] use SGML entities in ofboot.b and LABEL or UUID in yaboot.conf

Paul Nasrat pnasrat at redhat.com
Wed Mar 7 20:10:50 EST 2007


On Wed, 2007-03-07 at 08:44 +0100, didier wrote:
> Hi,
> 
> The following patch:
> - uses LABEL and UUID for root in yaboot.conf if defined on the
> command line or in /etc/fstab.
> 
> - uses SGML &device; and &partition; in ofboot for yaboot command, cf
> chrp1_8a.ps 3.1.6.1.
> 
> This way the disk is not Openfirmware dependent and can still boot
> even if ofpath can't find  the right path.

This seems reasonable - I've used the SGML &device; for removable media
boots on things such as USB sticks or CD's on some setups before.
commiting - 

I'll test on a few other setups.  I know some IBM machines have a
firmware limitation with &device; length - limiting it to 256 bytes
which I hit when using it multiple times in a CHRP script (to auto
detect if 64-bit or not and execute a different conf).  I think we may
want to possibly not use the entities on CHRP and just expand the device
for now.  Could you supply an updated patch?

> - It comments out the device line in yaboot.conf which defeats the
> whole stuff. I have many powermacs here (some with very old firmware)
> and none need it for booting. Do you know which one need it?

I'm unsure if you let me know what hardware/firmware you've tested on
that'd be useful.

> - Anyway in the above example, ofpath always get the device path wrong
> whichever channel I'm using, it's using ADPT,39160 at 3 when the drive is
> on the second channel    and ADPT,39160 at 3,1 when on the first, it's
> the reverse.

At this stage ofpath is really somewhat buggy and something I'd like to
eventually get rid of, possibly in favour of using ofpathname from
powerpc-utils, but that wont be for 1.3.14.

Paul




More information about the Yaboot-devel mailing list