Subject: yaboot.conf details for Triple Boot? & ybin
From: perry phillips (pm_perry@pacbell.net)
Date: Sat Jul 21 2001 - 11:39:13 MDT
It might be helpful if someone who has a working triple boot
yaboot.conf file (using OS X) could simply post it in its brief
entirety to the list as an example?
I think that much of what I've been dealing with, tangentially
related, has to do with my poor understanding of ybin
(/usr/sbin/ybin), how ybin options in yaboot.conf are called, and
more importantly the order of OF/OS call procedure(s) for booting
YDL. I know the call procedures vary depending on individual setups
& hardware, but any general overviews would be helpful.
In any case, updating (or resurrecting) the bootloader (without
getting into Open Firmware) should be possible with ybin from a
terminal window as root user. Sorry to have gone off again about
Open Firmware...
regards,
perry
I hope others find this helpful for bootloader breakdowns & changes-->
## --help output. (For ybin)
usage()
"Usage: $ ybin [OPTION]...
Update/install bootloader onto a bootstrap partition.
-b, --boot set bootstrap partition device [ -b /dev/hda2 ]
-o, --ofboot set bootstrap partition OpenFirmware
device [ -o hd:2 ]
-i, --install pathname to the actual bootloader binary
default: /usr/{local/}lib/yaboot/yaboot same as
install= in config file [ -i bootloader_file ]
-C, --config use alternate configuration file (ybin and yaboot)
[ -C config_file ]
-m, --magicboot pathname to a OpenFirmware magicboot (CHRP) script
--filesystem set the filesystem type of the bootstrap partition
options are hfs and msdos [ --filesystem hfs ]
default is hfs
--type set the HFS file type given to the boot file
if a magicboot script is used it will get this
type default: tbxi (HFS only)
--creator set the HFS creator code to all files
default: UNIX (HFS only)
--nobless don't bless the root directory, this should only
be used if you are using a MacOS boot partition
as the bootstrap partition (not recommended)
-M, --mount don't use userspace hfsutils to modify the
bootstrap instead try and mount the filesystem
directly. Note that attributes cannot be set
this way and you will have to manually modify
OpenFirmware to make your system bootable.
--protect set the read-only (locked) bit on all bootstrap
files
--hide set the invisible bit on all bootstrap files
this is useful of you don't want them to be
visible from MacOS.
--nonvram do not update the boot-device variable in nvram.
--device yaboot auto configuration: sets the OF boot device
default: hd:
--partition yaboot auto configuration: sets the partition
number of the root partition. default: 3
--timeout yaboot auto configuration: sets the time yaboot
will wait for user input before booting default
image default: 20 (2 seconds)
--image yaboot auto configuration: sets the path to the
kernel image. default: /vmlinux
--label yaboot auto configuration: sets the image label
default: Linux
--root yaboot auto configuration: sets the root device
default: /dev/hda3
--force don't ever ask confirmation
-v, --verbose make $PRG more verbose.
--debug print boring junk only useful for debugging
-h, --help display this help and exit
-V, --version output version information and exit"
This archive was generated by hypermail 2a24 : Sat Jul 21 2001 - 10:48:08 MDT