# Making the Temporary System Bootable

Some of the idiosyncracies of booting on ppc are discussed in appendixe. Essentially, there are two options here - either copy the bootloader to an OSX root partition and boot from Open Firmware, or use an install, Live, or rescue CD to set up a bootstrap partition.

## Copying the bootloader to OSX and booting from OF.

You must now ensure that `/tools/etc/yaboot.conf` contains the correct details for the CLFS system. Consult ch-bootable-yaboot for details, but note that at this point you do not need the `install, magicboot, enablecdboot` or `macosx` parameters because these are not available when you boot from Open Firmware.

By this stage, you should have the temporary system on an ext2 filesystem on your Mac. Now, from within OSX, copy `/tools/lib/yaboot/yaboot`) and `/tools/etc/yaboot.conf`) to the OSX `/` directory.

Each time you want to boot into the temporary system, hold down the option-command-o-f keys to get to Open Firmware, then use the following command, replacing `X` with the number of the partition containing the OSX root filesystem (typically, this will be '3').

    boot hd:X,yaboot

## Using a CD to set up the bootstrap partition.

This is particularly appropriate if you cannot write to an ext2 filesystem from OSX. Boot from the CD, and (as necessary) create partitions and filesystems, mount the CLFS partition at `/tools` and untar the temporary system there.

Now set up `/tools/etc/yaboot.conf` - see ch-bootable-yaboot for details of what should be in it, but note that the install and magicboot specifications should point to`/tools/lib/yaboot/` and not `/usr/lib/yaboot`.

To write the bootloader to the disk, with `/tools/sbin` first on your path and `/proc` mounted, run the following command:

    PATH_PREFIX=/tools ybin -v -C /tools/etc/yaboot.conf

    PATH_PREFIX=/tools mkofboot