Skip to content

Commit

Permalink
set tmpdir (#56)
Browse files Browse the repository at this point in the history
* set tmpdir

* array fix
  • Loading branch information
terem42 authored Oct 1, 2023
1 parent 99a63e2 commit b087305
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions hetzner-debian10-zfs-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ set -o errexit
set -o pipefail
set -o nounset

export TMPDIR=/tmp

# Variables
v_bpool_name=
v_bpool_tweaks=
Expand Down
2 changes: 2 additions & 0 deletions hetzner-debian11-zfs-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ set -o errexit
set -o pipefail
set -o nounset

export TMPDIR=/tmp

# Variables
v_bpool_name=
v_bpool_tweaks=
Expand Down
4 changes: 3 additions & 1 deletion hetzner-debian12-zfs-setup .sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ set -o errexit
set -o pipefail
set -o nounset

export TMPDIR=/tmp

# Variables
v_bpool_name=
v_bpool_tweaks=
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions hetzner-ubuntu18-zfs-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ set -o errexit
set -o pipefail
set -o nounset

export TMPDIR=/tmp

# Variables
v_bpool_name=
v_bpool_tweaks=
Expand Down
2 changes: 2 additions & 0 deletions hetzner-ubuntu20-zfs-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ set -o errexit
set -o pipefail
set -o nounset

export TMPDIR=/tmp

# Variables
v_bpool_name=
v_bpool_tweaks=
Expand Down
3 changes: 2 additions & 1 deletion hetzner-ubuntu22-zfs-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ set -o errexit
set -o pipefail
set -o nounset

export TMPDIR=/tmp

# Variables
v_bpool_name=
v_bpool_tweaks=
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit b087305

Please sign in to comment.