updated wih testing

This commit is contained in:
terem42
2023-10-04 14:00:24 +02:00
parent 44d99a539f
commit c4bc366f24

View File

@@ -495,13 +495,12 @@ for kver in $(find /lib/modules/* -maxdepth 0 -type d | grep -v "$(uname -r)" |
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
apt-get install --yes software-properties-common
# echo "y" | zfs # echo "y" | zfs
# zfs --version apt install --yes software-properties-common dpkg-dev dkms linux-headers-generic linux-image-generic
apt install --yes dpkg-dev dkms linux-headers-generic linux-image-generic rm -f "$(which zfs)"
rm "$(which zfs)" rm -f "$(which zpool)"
export PATH=$PATH:/usr/sbin
echo -e "deb http://deb.debian.org/debian/ testing main contrib non-free\ndeb http://deb.debian.org/debian/ testing main contrib non-free\n" >/etc/apt/sources.list.d/bookworm-testing.list echo -e "deb http://deb.debian.org/debian/ testing main contrib non-free\ndeb http://deb.debian.org/debian/ testing main contrib non-free\n" >/etc/apt/sources.list.d/bookworm-testing.list
echo -e "Package: src:zfs-linux\nPin: release n=testing\nPin-Priority: 990\n" > /etc/apt/preferences.d/90_zfs echo -e "Package: src:zfs-linux\nPin: release n=testing\nPin-Priority: 990\n" > /etc/apt/preferences.d/90_zfs
apt update apt update
@@ -509,6 +508,9 @@ echo "======= installing zfs on rescue system =========="
rm /etc/apt/sources.list.d/bookworm-testing.list rm /etc/apt/sources.list.d/bookworm-testing.list
rm /etc/apt/preferences.d/90_zfs rm /etc/apt/preferences.d/90_zfs
apt update apt update
export PATH=$PATH:/usr/sbin
zfs --version
echo "======= partitioning the disk ==========" echo "======= partitioning the disk =========="
if [[ $v_free_tail_space -eq 0 ]]; then if [[ $v_free_tail_space -eq 0 ]]; then