[PATCH] use SGML entities in ofboot.b and LABEL or UUID in yaboot.conf
didier
did447 at gmail.com
Wed Mar 7 18:44:15 EST 2007
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.
Example of files produced:
yaboot.conf
....
boot=/dev/sda7
# device=/pci at f2000000/pci-bridge at d/ADPT,39160 at 3/@4:
partition=8
root="UUID=83841114-a56b-4315-b1b1-499e2fa7f9b3"
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
image=/boot/vmlinux
label=Linux
read-only
initrd=/boot/initrd.img
initrd-size=8192
...
ofboot.b
...
: bootyaboot " L..." .printf 100 ms load-base release-load-area "
&device;:&partition;,\\yaboot"
...
Notes:
- Maybe a command line switch for both?
- 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?
- 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.
Didier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ofboot_yabootconfig.patch
Type: text/x-patch
Size: 2354 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/yaboot-devel/attachments/20070307/03ce15f0/attachment.bin>
More information about the Yaboot-devel
mailing list