From ff826c5142634f69b068fc56dbe66f61930bafd0 Mon Sep 17 00:00:00 2001 From: terem42 <9478806+terem42@users.noreply.github.com> Date: Thu, 20 Apr 2023 23:32:05 +0200 Subject: [PATCH] Update hetzner-debian11-zfs-setup.sh --- hetzner-debian11-zfs-setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hetzner-debian11-zfs-setup.sh b/hetzner-debian11-zfs-setup.sh index a2c9aaa..fd2838b 100644 --- a/hetzner-debian11-zfs-setup.sh +++ b/hetzner-debian11-zfs-setup.sh @@ -539,14 +539,14 @@ echo "======= create zfs pools and datasets ==========" # shellcheck disable=SC2086 zpool create \ $v_bpool_tweaks -O canmount=off -O devices=off \ - -o cachefile=/etc/zfs/zpool.cache \ + -o cachefile=/etc/zpool.cache \ -O mountpoint=/boot -R $c_zfs_mount_dir -f \ $v_bpool_name $pools_mirror_option "${bpool_disks_partitions[@]}" # shellcheck disable=SC2086 echo -n "$v_passphrase" | zpool create \ $v_rpool_tweaks \ - -o cachefile=/etc/zfs/zpool.cache \ + -o cachefile=/etc/zpool.cache \ "${encryption_options[@]}" \ -O mountpoint=/ -R $c_zfs_mount_dir -f \ $v_rpool_name $pools_mirror_option "${rpool_disks_partitions[@]}" @@ -737,7 +737,7 @@ chroot_execute "echo root:$(printf "%q" "$v_root_password") | chpasswd" echo "======= setting up zfs cache ==========" -cp /etc/zfs/zpool.cache /mnt/etc/zfs/zpool.cache +cp /etc/zpool.cache /mnt/etc/zfs/zpool.cache echo "========setting up zfs module parameters========" chroot_execute "echo options zfs zfs_arc_max=$((v_zfs_arc_max_mb * 1024 * 1024)) >> /etc/modprobe.d/zfs.conf"