From d801c54a3a2037ccecdcd62c772f7662482bea46 Mon Sep 17 00:00:00 2001 From: Andrey Prokopenko <9478806+andrey42@users.noreply.github.com> Date: Sat, 11 Apr 2020 19:07:06 +0200 Subject: [PATCH] Update hetzner-debian10-zfs-setup.sh --- hetzner-debian10-zfs-setup.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/hetzner-debian10-zfs-setup.sh b/hetzner-debian10-zfs-setup.sh index cdbfaef..78a13e7 100644 --- a/hetzner-debian10-zfs-setup.sh +++ b/hetzner-debian10-zfs-setup.sh @@ -698,20 +698,17 @@ echo "======= installing aux packages ==========" chroot_execute "apt install --yes man wget curl software-properties-common nano htop gnupg" echo "======= installing zfs packages ==========" +chroot_execute 'echo "zfs-dkms zfs-dkms/note-incompatible-licenses note true" | debconf-set-selections' + if [[ $v_zfs_experimental == "1" ]]; then chroot_execute "wget -O - https://andrey42.github.io/zfs-ubuntu/apt_pub.gpg | apt-key add -" chroot_execute "add-apt-repository 'deb https://andrey42.github.io/zfs-ubuntu/public zfs-debian-experimental main'" chroot_execute "apt update" -else - chroot_execute "apt install --yes zfs-initramfs zfs-dkms" -fi -chroot_execute 'echo "zfs-dkms zfs-dkms/note-incompatible-licenses note true" | debconf-set-selections' - -if [[ $v_zfs_experimental == "1" ]]; then - chroot_execute "apt install --yes zfs-initramfs zfs-dkms zfsutils-linux" -else chroot_execute "apt install -t zfs-debian-experimental --yes zfs-initramfs zfs-dkms zfsutils-linux" +else + chroot_execute "apt install --yes -t buster-backports zfs-initramfs zfs-dkms" fi + echo "======= installing OpenSSH and network tooling ==========" chroot_execute "apt install --yes openssh-server net-tools"