Update hetzner-ubuntu22-zfs-setup.sh

This commit is contained in:
terem42
2023-10-01 18:19:29 +02:00
committed by GitHub
parent 9bc5080df3
commit 99a63e2892

View File

@@ -560,6 +560,7 @@ if [[ $v_swap_size -gt 0 ]]; then
fi fi
echo "======= setting up initial system packages ==========" echo "======= setting up initial system packages =========="
export TMPDIR=/tmp
debootstrap --arch=amd64 jammy "$c_zfs_mount_dir" "$c_deb_packages_repo" debootstrap --arch=amd64 jammy "$c_zfs_mount_dir" "$c_deb_packages_repo"
zfs set devices=off "$v_rpool_name" zfs set devices=off "$v_rpool_name"
@@ -674,8 +675,6 @@ chroot_execute "setupcon"
chroot_execute "rm -f /etc/localtime /etc/timezone" chroot_execute "rm -f /etc/localtime /etc/timezone"
chroot_execute "dpkg-reconfigure tzdata -f noninteractive " chroot_execute "dpkg-reconfigure tzdata -f noninteractive "
chroot_execute "mkdir /tmp/hwc"
echo "======= installing latest kernel=============" echo "======= installing latest kernel============="
chroot_execute "DEBIAN_FRONTEND=noninteractive apt install --yes linux-headers${v_kernel_variant} linux-image${v_kernel_variant}" chroot_execute "DEBIAN_FRONTEND=noninteractive apt install --yes linux-headers${v_kernel_variant} linux-image${v_kernel_variant}"
if [[ $v_kernel_variant == "-virtual" ]]; then if [[ $v_kernel_variant == "-virtual" ]]; then