From be2279f8b9bda044c3497d17c88fdf6f14324edf Mon Sep 17 00:00:00 2001 From: terem42 <9478806+terem42@users.noreply.github.com> Date: Thu, 20 Apr 2023 22:29:19 +0200 Subject: [PATCH] revert changes --- hetzner-debian11-zfs-setup.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hetzner-debian11-zfs-setup.sh b/hetzner-debian11-zfs-setup.sh index 7b0abb2..ef7940c 100644 --- a/hetzner-debian11-zfs-setup.sh +++ b/hetzner-debian11-zfs-setup.sh @@ -486,11 +486,11 @@ determine_kernel_variant clear -#echo "===========remove unused kernels in rescue system=========" -#for kver in $(find /lib/modules/* -maxdepth 0 -type d | grep -v "$(uname -r)" | cut -s -d "/" -f 4); do -# apt purge --yes "linux-headers-$kver" -# apt purge --yes "linux-image-$kver" -#done +echo "===========remove unused kernels in rescue system=========" +for kver in $(find /lib/modules/* -maxdepth 0 -type d | grep -v "$(uname -r)" | cut -s -d "/" -f 4); do + apt purge --yes "linux-headers-$kver" + apt purge --yes "linux-image-$kver" +done echo "======= installing zfs on rescue system ==========" echo "zfs-dkms zfs-dkms/note-incompatible-licenses note true" | debconf-set-selections @@ -498,7 +498,7 @@ echo "======= installing zfs on rescue system ==========" apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8CF63AD3F06FC659 add-apt-repository 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main' apt update - apt install --yes zfs-dkms zfs-modules zfsutils-linux + apt install --yes zfs-dkms zfsutils-linux add-apt-repository -r 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main' apt update find /usr/local/sbin/ -type l -exec rm {} + @@ -718,7 +718,7 @@ if [[ $v_zfs_experimental == "1" ]]; then chroot_execute "apt update" chroot_execute "apt install -t zfs-debian-experimental --yes zfs-initramfs zfs-dkms zfsutils-linux" else - chroot_execute "apt install --yes zfs-initramfs zfs-modules zfs-dkms zfsutils-linux" + chroot_execute "apt install --yes zfs-initramfs zfs-dkms zfsutils-linux" fi chroot_execute 'cat << DKMS > /etc/dkms/zfs.conf # override for /usr/src/zfs-*/dkms.conf: