Installs Debian GNU/Linux 9 Stretch to a native ZFS root filesystem using a Debian Jessie Live CD and ZFS packages from backports.org.
As the time of this writing, Debian 9 (Stretch) is in 'frozen' state and therefore there is no Stretch Live CD available. So you need to use a Jessie Live CD for installation. Debian Stretch Live CD Images are available now and this script both supports Jessie and Stretch Live CD Images.
- Boot Jessie Live CD ('standard' edition)
- Login (user:
user
, password:live
) and become root - Setup network and export
http_proxy
environment variable (if needed) - Run this script
- User interface: Select disks and RAID level
- Let the installer do the work
- User interface: install grub to all disks participating in the array
- User interface: enter root password and select timezone
- Reboot
- grub (v2.02, included in Debian 9), especially
grub-probe
, does not support all ZFS features and subsequently refuses to install. This script disablesfeature@hole_birth
andfeature@embedded_data
(and you must not enable those features after installation). - Some mountpoints, notably
/var
, need to be mounted via fstab as the ZFS mount script runs too late during boot. - The EFI System Partition (ESP) is a single point of failure on one disk, this is arguably a mis-design in the UEFI specification.
- Booting via EFI has not been tested at all.