====== yaboot ======
* [[PowerMac G5]]
* [[https://help.ubuntu.com/community/YabootConfigurationForMacintoshPowerPCsDualBoot|Ubuntu yaboot]]
Use yaboot to boot into a Linux install from a PowerPC Mac.
Create a configuration file in ''/etc/yaboot.conf''.
Set the boot parameter to the partition where the NewWorld bootblock is installed (typically /dev/sda2).
boot=/dev/sda2
Use ''ofpath'' to determine the HDD name used by OpenFirmware. Use the full device name, not a partition:
ofpath /dev/sda
device=/ht@0,f2000000/pci@9/k2-sata-root@c/k2-sata@0/disk@0:
The partition number is the one with the root OS install. It's highly recommended to keep ''/boot'' on the same partition.
# HFS partition
boot=/dev/sda2
device=/ht@0,f2000000/pci@9/k2-sata-root@c/k2-sata@0/disk@0:
# Linux partition
partition=3
delay=10
timeout=40
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
# Allow booting from CD
enablecdboot
# Allow booting from Open Firmware
enableofboot
image=/boot/vmlinux-3.6.11
label=linux
root=/dev/sda3
read-only
Once the configuration file is complete, use ''mkofboot'' to install it. This will create an HFS filesystem on the bootblock partition. If you are booted into a LiveCD, it will look for the files that are listed in the config file. In other words, when installing it, do it from the same filesystem that the boot files exist on.
mkofboot