User:Wwoods/Building images with treebuilder

What's treebuilder?
Treebuilder is the new branch of Lorax which builds Anaconda images that boot like regular Live images. The advantages of this approach are:
 * 1) The installer uses much less RAM and starts up much faster than it did in F15
 * 2) The initrd is a normal dracut image, so:
 * 3) * There's a shell in
 * 4) * No more maintaining the ancient, crusty  codebase. yay!
 * 5)   is under 20MB, so PPC systems can netboot it

How do I get started?
1. set up an F16 chroot
 * this is optional for x86 systems but required for ppc
 * see http://sharkcz.livejournal.com/8649.html for detailed directions
 * NOTE: you don't need a separate partition for this - just creating a directory named  will work OK

2.  (inside the chroot if you're doing that)

3. Install a copy of the treebuilder branch: git clone git://git.fedorahosted.org/git/lorax cd lorax git checkout treebuilder make sudo make install

4. Grab a kickstart You can use  from the   package, or you can use this minimized version if you're not going to build full DVD images: repo --name=fedora --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-16&arch=$basearch repo --name=updates-testing --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f16&arch=$basearch %packages @base %end
 * 1) Minimal Fedora kickstart - basically just for testing anaconda
 * 1) ==== REPOS ====
 * 2) pick one of rawhide or the current (branched) release
 * 3) repo --name=rawhide --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch
 * 4) -or-
 * 1) repo --name=updates --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f16&arch=$basearch
 * 1) And an extra line in case you have some local changes
 * 2) repo --name=localrepo --baseurl=file:///srv/pungi/localrepo --cost=1
 * 1) This is what ends up in the Packages dir and on the DVD.
 * 2) It doesn't change the contents of the anaconda runtime.
 * 3) This is a very minimal package set because we only care about the images (boot.iso etc.)

Save that as.

5. Run pungi Here's the script I use:

if [ $(getenforce) == Enforcing ]; then sudo setenforce 0 echo "turning off SELinux enforcing" fi echo "removing /srv/pungi/test, one moment..." sudo rm -rf /srv/pungi/test sudo pungi --nosource --nodebuginfo --destdir=/srv/pungi/test -c /srv/pungi/anacondatest.ks -G -C -B "$@"
 * 1) !/bin/bash

Initial dialogs
The first two dialogs for language and keyboard are in VGA character-cell text-mode "graphics". This is being investigated.

Making a USB stick
These are live images - use.

Can't find root device when booting ISO image
Currently (Sep. 9) the DVD images lack a proper  argument in their bootloader config. Change the  argument to   (or add it if it doesn't exist).

On Power Mac systems, the CD driver is too old for udev to be able to handle setting up the  links, so booting will fail. As a workaround, try.