From b08730586a2fed7171c4f7fcfe6c3a98364ef86c Mon Sep 17 00:00:00 2001 From: terem42 <9478806+terem42@users.noreply.github.com> Date: Sun, 1 Oct 2023 19:39:54 +0200 Subject: [PATCH] set tmpdir (#56) * set tmpdir * array fix --- hetzner-debian10-zfs-setup.sh | 2 ++ hetzner-debian11-zfs-setup.sh | 2 ++ hetzner-debian12-zfs-setup .sh | 4 +++- hetzner-ubuntu18-zfs-setup.sh | 2 ++ hetzner-ubuntu20-zfs-setup.sh | 2 ++ hetzner-ubuntu22-zfs-setup.sh | 3 ++- 6 files changed, 13 insertions(+), 2 deletions(-) diff --git a/hetzner-debian10-zfs-setup.sh b/hetzner-debian10-zfs-setup.sh index c5a9192..0140df1 100644 --- a/hetzner-debian10-zfs-setup.sh +++ b/hetzner-debian10-zfs-setup.sh @@ -17,6 +17,8 @@ set -o errexit set -o pipefail set -o nounset +export TMPDIR=/tmp + # Variables v_bpool_name= v_bpool_tweaks= diff --git a/hetzner-debian11-zfs-setup.sh b/hetzner-debian11-zfs-setup.sh index 1337886..87cc694 100644 --- a/hetzner-debian11-zfs-setup.sh +++ b/hetzner-debian11-zfs-setup.sh @@ -17,6 +17,8 @@ set -o errexit set -o pipefail set -o nounset +export TMPDIR=/tmp + # Variables v_bpool_name= v_bpool_tweaks= diff --git a/hetzner-debian12-zfs-setup .sh b/hetzner-debian12-zfs-setup .sh index 382b8bb..80f517d 100644 --- a/hetzner-debian12-zfs-setup .sh +++ b/hetzner-debian12-zfs-setup .sh @@ -17,6 +17,8 @@ set -o errexit set -o pipefail set -o nounset +export TMPDIR=/tmp + # Variables v_bpool_name= v_bpool_tweaks= @@ -532,7 +534,7 @@ echo "======= create zfs pools and datasets ==========" pools_mirror_option= if [[ ${#v_selected_disks[@]} -gt 1 ]]; then - if dialog --defaultno --yesno "Do you want to use mirror mode for ${v_selected_disks[@]}?" 30 100; then + if dialog --defaultno --yesno "Do you want to use mirror mode for ${v_selected_disks[*]}?" 30 100; then pools_mirror_option=mirror fi fi diff --git a/hetzner-ubuntu18-zfs-setup.sh b/hetzner-ubuntu18-zfs-setup.sh index e890706..3d41289 100644 --- a/hetzner-ubuntu18-zfs-setup.sh +++ b/hetzner-ubuntu18-zfs-setup.sh @@ -17,6 +17,8 @@ set -o errexit set -o pipefail set -o nounset +export TMPDIR=/tmp + # Variables v_bpool_name= v_bpool_tweaks= diff --git a/hetzner-ubuntu20-zfs-setup.sh b/hetzner-ubuntu20-zfs-setup.sh index fcdbb25..4d851df 100644 --- a/hetzner-ubuntu20-zfs-setup.sh +++ b/hetzner-ubuntu20-zfs-setup.sh @@ -17,6 +17,8 @@ set -o errexit set -o pipefail set -o nounset +export TMPDIR=/tmp + # Variables v_bpool_name= v_bpool_tweaks= diff --git a/hetzner-ubuntu22-zfs-setup.sh b/hetzner-ubuntu22-zfs-setup.sh index 8733464..c6bb54e 100644 --- a/hetzner-ubuntu22-zfs-setup.sh +++ b/hetzner-ubuntu22-zfs-setup.sh @@ -17,6 +17,8 @@ set -o errexit set -o pipefail set -o nounset +export TMPDIR=/tmp + # Variables v_bpool_name= v_bpool_tweaks= @@ -560,7 +562,6 @@ if [[ $v_swap_size -gt 0 ]]; then fi echo "======= setting up initial system packages ==========" -export TMPDIR=/tmp debootstrap --arch=amd64 jammy "$c_zfs_mount_dir" "$c_deb_packages_repo" zfs set devices=off "$v_rpool_name"