diff --git a/hetzner-debian10-zfs-setup.sh b/hetzner-debian10-zfs-setup.sh index 1d81655..29fa440 100644 --- a/hetzner-debian10-zfs-setup.sh +++ b/hetzner-debian10-zfs-setup.sh @@ -538,13 +538,13 @@ 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 \ - -o cachefile=/etc/zfs/zpool.cache \ + -o cachefile=/etc/zpool.cache \ $v_rpool_tweaks \ "${encryption_options[@]}" \ -O mountpoint=/ -R $c_zfs_mount_dir -f \ @@ -735,7 +735,7 @@ echo "======= set root password ==========" 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" diff --git a/hetzner-ubuntu18-zfs-setup.sh b/hetzner-ubuntu18-zfs-setup.sh index 7fc38c7..e890706 100644 --- a/hetzner-ubuntu18-zfs-setup.sh +++ b/hetzner-ubuntu18-zfs-setup.sh @@ -506,14 +506,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[@]}" @@ -718,7 +718,7 @@ echo "======= set root password ==========" 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" diff --git a/hetzner-ubuntu20-zfs-setup.sh b/hetzner-ubuntu20-zfs-setup.sh index d739971..5b82255 100644 --- a/hetzner-ubuntu20-zfs-setup.sh +++ b/hetzner-ubuntu20-zfs-setup.sh @@ -506,14 +506,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[@]}" @@ -719,7 +719,7 @@ echo "======= set root password ==========" 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"