A standalone systemd ZFS hook for mkinitcpio, built from the archlinuxcn repository.
The archlinuxcn repo is the only org maintaining a sd-zfs module. However, their project is based on linux-lts and the module should be made available for all to use. Therefore, I created this repo to simplify the creation of just the module for others to use.
- Go to the Releases page
- Download the latest
.zstfile - Install with pacman:
sudo pacman -U sd-zfs-hook-*.pkg.tar.zstgit clone https://github.com/lumnikemel/sd-zfs-hook.git
cd sd-zfs-hook
makepkg -siAdd sd-zfs to your HOOKS array in /etc/mkinitcpio.conf:
HOOKS=(systemd sd-zfs ...)Then rebuild your initramfs:
sudo mkinitcpio -PThe following boot parameters are supported:
root=zfs- imports all pools, searches for bootfs propertyroot=zfs:poolname- imports specified pool, uses its bootfsroot=zfs:poolname/dataset- imports pool, mounts specified dataset