[Debootloaders-yaboot] Bug#615602: Bug#615602: yaboot: ybin puts $PWD in front of path for macos=hd:7 and macosx=ultra1:6

Milan Kupcevic milan at physics.harvard.edu
Sat Mar 5 04:44:46 UTC 2011


tags 615602 - d-i
severity 615602 normal
thanks


On 02/27/2011 01:35 PM, Bernward wrote:
> if path is an open firmware alias like "hd:7" or "ultra1:6", without leading "/".
> The current working directory is put in front of the path, while ybin translates yaboot.conf.
> E.g. when calling ybin in directory /root, the generated line in ofboot.b is
> 

This will be fixed in future releases. Use persistent device naming
symlinks (i.e. /dev/disk/by-id/xxx) instead of openfirmware aliases for
boot, bsd, macos, macosx and darwin variables in Squeeze.


> with the new kernel in squeeze, the hard disks now are handled as scsi drives, 
> and the naming in /dev is somewhat randomly, so after the next boot, the same
> entry in yaboot.conf might fail.   
> 

That is why we use persistent device naming symlinks (i.e.
/dev/disk/by-id/xxx) instead of traditional unix device names (i.e.
/dev/sdaX).


For example, this yaboot.conf was generated by d-i:

boot="/dev/disk/by-id/scsi-SATA_HDS728081PLA380_PFDB32E9SM6Y4M-part2"
device=/ht at 0,f2000000/pci at 7/k2-sata-root at c/k2-sata at 0/@0
partition=3
root="UUID=45780a5d-5764-47f5-bcd9-430c770d6ed7"
timeout=100
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
enablecdboot
macosx="/dev/disk/by-id/scsi-SATA_WDC_WD1600JS-75_WD-WCANM1733293-part3"

image=/boot/vmlinux
	label=Linux
	read-only
	initrd=/boot/initrd.img
	append="video=TV-1:d"

image=/boot/vmlinux.old
	label=old
	read-only
	initrd=/boot/initrd.img.old
	append="video=TV-1:d"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debootloaders-yaboot/attachments/20110304/9a53bb3d/attachment.pgp>


More information about the Debootloaders-yaboot mailing list