removed double quoting from zpool statements

This commit is contained in:
Prokopenko Andrey
2021-11-25 23:37:05 +01:00
parent f2331df185
commit dc72f24c43
3 changed files with 17 additions and 11 deletions

View File

@@ -509,18 +509,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"