mirror of
https://github.com/terem42/zfs-hetzner-vm.git
synced 2025-12-22 14:58:32 +00:00
Update hetzner-ubuntu22-zfs-setup.sh
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user