ZFS and minimal ISO image installer

I ran into a problem with a recent installation where the graphical installer fails to load, but the minimal installer works fine.

So I started setting up my usual ZFS filesystem partitions, pools, and datasets in the minimal installer, only to discover that ZFS isn’t included by default in the minimal installer as it is in the graphical one. So I installed it with nix-env -iA nixos.zfs, but now get the following error:

The ZFS modules cannot be auto-loaded.
Try running 'modprobe zfs' as root to manually load them.

But sudo modprobe zfs/zpool gives the error:

modprobe: FATAL: Module zfs/zpool not found in directory /run/booted-system/kernel-modules/lib/modules/6.15.4

Anyone know how to enable ZFS in the minimal installer?

Try:

sudo modprobe zfs

Sorry just updated main post with that, it gives an error too.

I don’t have time to test this rn, but I think if you make ZFS available (as you’ve done) AND THEN REBOOT it will be fine. Only you might need to nix-env again if you’re booting from read-only media.

The problem is that, when booting, you selected the latest kernel which does NOT have ZFS support.

The minimal install image features two kernel choices, the LTS kernel which has ZFS support and a more recent kernel, meant for newer hardware, which does not have ZFS support. If you are able to boot the LTS kernel on your hardware you should be able to complete the install normally. If you require a newer kernel for your device you would likely have to build a custom install image using the latest kernel with ZFS support. Make sure you have read the ZFS page of the wiki.

1 Like