Skip to content

Install Debian 10 (Buster) to a native ZFS root filesystem

Notifications You must be signed in to change notification settings

SoerenBusse/debian-buster-zfs-root

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

debian-buster-zfs-root

Installs Debian GNU/Linux 10 Buster to a native ZFS root filesystem using a Debian Live CD. The resulting system is a fully updateable debian system with no quirks or workarounds. This script installs the ZFS version from the Debian Buster Backports repository.

Warning

  • This script installs swap as a ZFS dataset. Some users reported deadlocks with zfs version 0.7.9 (see ZFS Github Issue). This script installs version > 0.8 which might be affected to this bug too. To disable the creation of a ZFS swap dataset set SIZESWAP to 0G. Make sure to add a seperate swap disk manually if needed.

Usage

  1. Boot Debian Live CD
  2. Login (user: user, password: live) and become root
  3. Setup network and export http_proxy environment variable (if needed)
  4. Run this script
  5. User interface: Select disks and RAID level
  6. User interface: Decide if you want Legacy BIOS or EFI boot (only if your hardware supports EFI)
  7. Let the installer do the work
  8. User interface: install grub to all disks participating in the array (only if you're using Legacy BIOS boot)
  9. User interface: enter root password and select timezone
  10. Reboot
  11. Star this repository :)

Customize

It's possible to preseed the script with the appropriate environment variables or modifying this values directly which are defined here.

To execute a custom script after the installation in the chroot of the new installed system you need to set the POST_INSTALL_SCRIPT variable to a script location.

Fixes included

Bugs

  • grub-install sometimes mysteriously fails for disk numbers >= 4 (grub-install: error: cannot find a GRUB drive for /dev/disk/by-id/...).

Credits

About

Install Debian 10 (Buster) to a native ZFS root filesystem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%