hetzner-dedicated/zfs: Load zfs module before trying to use it

This commit is contained in:
Akshay Mankar 2023-10-13 16:15:22 +02:00
parent 33ba9f7fd6
commit b43348a690
Signed by: axeman
GPG key ID: CA08F3AB62369B89

View file

@ -176,6 +176,9 @@ mdadm --zero-superblock --force $DISK2-part3 || true
# See https://github.com/NixOS/nixpkgs/issues/62444 # See https://github.com/NixOS/nixpkgs/issues/62444
udevadm trigger udevadm trigger
# Sometimes the zfs module is not loaded
modprobe zfs
# taken from https://nixos.wiki/wiki/NixOS_on_ZFS # taken from https://nixos.wiki/wiki/NixOS_on_ZFS
# somehow there is a weird symlink in the default zfs # somehow there is a weird symlink in the default zfs
zpool create -O mountpoint=none \ zpool create -O mountpoint=none \