mirror of
https://github.com/terem42/zfs-hetzner-vm.git
synced 2025-12-22 14:58:32 +00:00
Update hetzner-debian10-zfs-setup.sh
This commit is contained in:
committed by
GitHub
parent
bccb952a4d
commit
d801c54a3a
@@ -698,20 +698,17 @@ echo "======= installing aux packages =========="
|
|||||||
chroot_execute "apt install --yes man wget curl software-properties-common nano htop gnupg"
|
chroot_execute "apt install --yes man wget curl software-properties-common nano htop gnupg"
|
||||||
|
|
||||||
echo "======= installing zfs packages =========="
|
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
|
if [[ $v_zfs_experimental == "1" ]]; then
|
||||||
chroot_execute "wget -O - https://andrey42.github.io/zfs-ubuntu/apt_pub.gpg | apt-key add -"
|
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 "add-apt-repository 'deb https://andrey42.github.io/zfs-ubuntu/public zfs-debian-experimental main'"
|
||||||
chroot_execute "apt update"
|
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"
|
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
|
fi
|
||||||
|
|
||||||
echo "======= installing OpenSSH and network tooling =========="
|
echo "======= installing OpenSSH and network tooling =========="
|
||||||
chroot_execute "apt install --yes openssh-server net-tools"
|
chroot_execute "apt install --yes openssh-server net-tools"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user