After following How to install FreeBSD 8.0 using only ZFS partitions numerous times to install FreeBSD on ZFS I decided automate things. So I created a pair of shell scripts to do it. You use them as follows.
- Edit zfsinstall.sh and set the destination drive and swap partition size.
- Edit zfsinstall2.sh and set your NIC information.
- Copy the two scripts to a USB drive (I use a Sandisk Cruzer)
- Boot off a FreeBSD 8.0 amd64 DVD
- Choose your code page
- In sysinstall, choose Fixit->CDROM/DVD
- Mount the USB drive on /mnt
- cd to /mnt
- run zfsinstall1.sh
When you run these scripts you are essentially following the procedure outlined in How to install FreeBSD 8.0 using only ZFS partitions only the partition calculations and all the typing is done for you. All you have to do is answer the questions!
Note the following:
- These scripts currently only work for FreeBSD 8.0 Release AMD64. i386 kernel panics.
- Have only been tested in a system with 4GB or RAM.
- Only works for installing on a full drive, not in a slice.
- These scripts are still being worked on.
These scripts are still being worked on, so check back regularly for fixes and updates.
You get the scripts from the Scripts for installing FreeBSD 8.0 onto ZFS page in the wiki.
– Fixed the link to the wiki page
– Since completing these script PC-BSD 8.0 has been released. This is significant because PC-BSD’s installer will let you install FreeBSD on to ZFS using their installation tool. So if your looking for a point-and-click installation check it out.