From f2331df1857752c84277dad2a6d223cbd639fb6e Mon Sep 17 00:00:00 2001 From: Prokopenko Andrey Date: Thu, 25 Nov 2021 22:27:06 +0100 Subject: [PATCH] zpool options update for debian --- hetzner-debian11-zfs-setup.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hetzner-debian11-zfs-setup.sh b/hetzner-debian11-zfs-setup.sh index 2c5a793..ce4bcea 100644 --- a/hetzner-debian11-zfs-setup.sh +++ b/hetzner-debian11-zfs-setup.sh @@ -542,18 +542,20 @@ echo "======= create zfs pools and datasets ==========" pools_mirror_option= fi +# shellcheck disable=SC2086 zpool create \ - "$v_bpool_tweaks" -O canmount=off -O devices=off \ + $v_bpool_tweaks -O canmount=off -O devices=off \ -o cachefile=/etc/zfs/zpool.cache \ -O mountpoint=/boot -R $c_zfs_mount_dir -f \ - "$v_bpool_name $pools_mirror_option" "${bpool_disks_partitions[@]}" + $v_bpool_name $pools_mirror_option "${bpool_disks_partitions[@]}" +# shellcheck disable=SC2086 echo -n "$v_passphrase" | zpool create \ - "$v_rpool_tweaks" \ + $v_rpool_tweaks \ -o cachefile=/etc/zfs/zpool.cache \ "${encryption_options[@]}" \ -O mountpoint=/ -R $c_zfs_mount_dir -f \ - "$v_rpool_name $pools_mirror_option" "${rpool_disks_partitions[@]}" + $v_rpool_name $pools_mirror_option "${rpool_disks_partitions[@]}" zfs create -o canmount=off -o mountpoint=none "$v_rpool_name/ROOT" zfs create -o canmount=off -o mountpoint=none "$v_bpool_name/BOOT"