Skip to content

Commit

Permalink
updated wih testing
Browse files Browse the repository at this point in the history
  • Loading branch information
terem42 committed Oct 4, 2023
1 parent 0cbb213 commit 87e82b7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
14 changes: 14 additions & 0 deletions apt_from_deb_testing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

apt update
apt install --yes dpkg-dev dkms linux-headers-generic linux-image-generic
rm "$(which zfs)"
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 "Package: src:zfs-linux\nPin: release n=testing\nPin-Priority: 990\n" > /etc/apt/preferences.d/90_zfs
apt update
apt install -t testing zfs-dkms zfsutils-linux
rm /etc/apt/sources.list.d/bookworm-testing.list
rm /etc/apt/preferences.d/90_zfs
apt update

16 changes: 13 additions & 3 deletions hetzner-debian12-zfs-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,19 @@ done
echo "======= installing zfs on rescue system =========="
echo "zfs-dkms zfs-dkms/note-incompatible-licenses note true" | debconf-set-selections
apt-get install --yes software-properties-common
echo "y" | zfs
zfs --version

# echo "y" | zfs
# zfs --version
apt update
apt install --yes dpkg-dev dkms linux-headers-generic linux-image-generic
rm "$(which zfs)"
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 "Package: src:zfs-linux\nPin: release n=testing\nPin-Priority: 990\n" > /etc/apt/preferences.d/90_zfs
apt update
apt install -t testing zfs-dkms zfsutils-linux
rm /etc/apt/sources.list.d/bookworm-testing.list
rm /etc/apt/preferences.d/90_zfs
apt update
echo "======= partitioning the disk =========="

if [[ $v_free_tail_space -eq 0 ]]; then
Expand Down

0 comments on commit 87e82b7

Please sign in to comment.