From b43348a690d1d38b8aa196d43ec8347c505f6c59 Mon Sep 17 00:00:00 2001 From: Akshay Mankar Date: Fri, 13 Oct 2023 16:15:22 +0200 Subject: [PATCH] hetzner-dedicated/zfs: Load zfs module before trying to use it --- hosters/hetzner-dedicated/zfs-uefi-nvme-nixos.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosters/hetzner-dedicated/zfs-uefi-nvme-nixos.sh b/hosters/hetzner-dedicated/zfs-uefi-nvme-nixos.sh index 3479b81..07d474e 100644 --- a/hosters/hetzner-dedicated/zfs-uefi-nvme-nixos.sh +++ b/hosters/hetzner-dedicated/zfs-uefi-nvme-nixos.sh @@ -176,6 +176,9 @@ mdadm --zero-superblock --force $DISK2-part3 || true # See https://github.com/NixOS/nixpkgs/issues/62444 udevadm trigger +# Sometimes the zfs module is not loaded +modprobe zfs + # taken from https://nixos.wiki/wiki/NixOS_on_ZFS # somehow there is a weird symlink in the default zfs zpool create -O mountpoint=none \