revert changes

This commit is contained in:
terem42
2023-04-20 22:29:19 +02:00
committed by GitHub
parent de76b08963
commit be2279f8b9

View File

@@ -486,11 +486,11 @@ determine_kernel_variant
clear clear
#echo "===========remove unused kernels in rescue system=========" 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 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-headers-$kver"
# apt purge --yes "linux-image-$kver" apt purge --yes "linux-image-$kver"
#done done
echo "======= installing zfs on rescue system ==========" echo "======= installing zfs on rescue system =========="
echo "zfs-dkms zfs-dkms/note-incompatible-licenses note true" | debconf-set-selections 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 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8CF63AD3F06FC659
add-apt-repository 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main' add-apt-repository 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
apt update 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' add-apt-repository -r 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
apt update apt update
find /usr/local/sbin/ -type l -exec rm {} + 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 update"
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 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 fi
chroot_execute 'cat << DKMS > /etc/dkms/zfs.conf chroot_execute 'cat << DKMS > /etc/dkms/zfs.conf
# override for /usr/src/zfs-*/dkms.conf: # override for /usr/src/zfs-*/dkms.conf: