Talk:Install Arch Linux on ZFS
replace writehostid with zgenhostid?
Since a few versions zfs now comes with a tool to write a hostid to /etc/hostid. Should we recommend using it instead of the provided C code?
base metapackage change and ALEZ script
With the changes to `base` and looking at ALEZ, it looks as though ALEZ may not be up to date with the metapackage change which could potentially lead to an unbootable system. Is there any confirmation that ALEZ still works?
It should be working as is since the current release from last month was before thechange, however I will update the script accordingly and release new ISO.
Update partition scheme for separate boot pool, root pool and swap partition
As the current situation stands, GRUB severely lags behind OpenZFS development. Many features need to be disabled on the pool which GRUB will boot from.
OpenZFS official guide has adopted the approach of creating separate boot pool (mounted at /boot) and root pool (mounted at /) since at least Debian Stretch days.
A separate swap partition is also recommended over swap on zvol to avoid deadlocks.
I've completed a guide for Root on ZFS here, containing the above fixes.
One might argue why don't just mount esp at /boot, here's my argument: with /boot on a ZFS pool, it is possible to select initramfs from a ZFS snapshot in GRUB, which enables recovery from a faulty initramfs. If stored in esp, there's no way to rescue a system with bad initramfs, or do a full system rollback to a previous state, as contents in /boot is not protected by ZFS.
AUR relies on separate boot and root pools to perform a full system rollback.