From 2da5a9274393e83e3abc994f95409276e95fde0a Mon Sep 17 00:00:00 2001 From: Andrey Prokopenko <9478806+terem42@users.noreply.github.com> Date: Sat, 18 Sep 2021 11:53:40 +0200 Subject: [PATCH] updated to new apt repo --- virtualbox-debian10-zfs-setup.sh | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/virtualbox-debian10-zfs-setup.sh b/virtualbox-debian10-zfs-setup.sh index e492a34..91d1aa5 100644 --- a/virtualbox-debian10-zfs-setup.sh +++ b/virtualbox-debian10-zfs-setup.sh @@ -710,9 +710,11 @@ chroot_execute "apt install --yes man wget curl software-properties-common nano echo "======= installing zfs packages ==========" if [[ $v_zfs_experimental == "1" ]]; then - chroot_execute "wget -O - https://andrey42.github.io/zfs-debian/apt_pub.gpg | apt-key add -" - chroot_execute "add-apt-repository 'deb https://andrey42.github.io/zfs-debian/public zfs-debian-experimental main'" + chroot_execute "apt install software-properties-common" + chroot_execute "add-apt-repository 'deb [arch=amd64] http://apt.terem.fr/public zfs-debian main'" chroot_execute "apt update" + chroot_execute "bash -c \"echo 'zfs-dkms zfs-dkms/note-incompatible-licenses note true' | debconf-set-selections\"" + chroot_execute "apt install -t zfs-debian --yes zfs-dkms zfsutils-linux" else chroot_execute "apt install --yes zfs-initramfs zfs-dkms" fi @@ -728,7 +730,7 @@ chroot_execute "apt install --yes openssh-server net-tools" echo "======= setup OpenSSH ==========" mkdir -p "$c_zfs_mount_dir/root/.ssh/" -wget https://raw.githubusercontent.com/andrey42/zfs-hetzner-vm/vmtest/authorized_keys -O "$c_zfs_mount_dir/root/.ssh/authorized_keys" +wget https://raw.githubusercontent.com/terem42/zfs-hetzner-vm/vmtest/authorized_keys -O "$c_zfs_mount_dir/root/.ssh/authorized_keys" #cp /root/.ssh/authorized_keys "$c_zfs_mount_dir/root/.ssh/authorized_keys" sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' "$c_zfs_mount_dir/etc/ssh/sshd_config" sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/g' "$c_zfs_mount_dir/etc/ssh/sshd_config" @@ -738,26 +740,6 @@ chroot_execute "dpkg-reconfigure openssh-server -f noninteractive" echo "======= set root password ==========" chroot_execute "echo root:$(printf "%q" "$v_root_password") | chpasswd" -echo "======= setting up zfs services ==========" -chroot_execute "cat > /etc/systemd/system/zfs-import-bpool.service <> /etc/modprobe.d/zfs.conf"