Shell scripts, thats can help to install you preffered linux OS on zfs root. Can be run in silent and semi-interactive mode.
Tested on:
- OpenSUSE Leap 15.3
- OpenSUSE Tumbleweed
To use scripts you need:
- Create bootable Live cd or usb with preffered(legacy or UEFI) load interface. Works well balenaEtcher.
- Boot from this Live iso and setup network connection. (by "ip" commands, for example)
- Download zip archive of LroZ scripts and unzip them:
wget https://github.com/ndruba/LroZ/archive/refs/heads/master.zip
unzip master.zip
cd ./LroZ
- Edit config:
vim lroz.conf
or
nano lroz.conf
- Run setup:
./lroz.sh
- After reboot and setup network, to finish installation run:
/root/lroz/firstboot.sh
Notes:
To use this scripts you need to understand at least a general idea of ZFS working. Admin Documentation
zpool features grub2 compability list
Installed system may not have the same disk id's list, like Live iso. If you choose UEFI type of bootloader and system can't boot after installation, check that new system have disk id that you choosed during installation. Otherwise, fix /etc/fstab in new system or repeat installation with correct disk id.
Thanx:
files/genhostid.sh script taken from openzfs project