mirror of
https://github.com/terem42/zfs-hetzner-vm.git
synced 2025-12-22 14:58:32 +00:00
updated to focal package
This commit is contained in:
@@ -492,19 +492,14 @@ 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
|
||||||
cd "$(mktemp -d)"
|
apt-get install --yes software-properties-common
|
||||||
wget "$(curl -Ls https://api.github.com/repos/openzfs/zfs/releases/latest| grep "browser_download_url.*tar.gz"|grep -E "tar.gz\"$"| cut -d '"' -f 4)"
|
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 update
|
||||||
apt install libssl-dev uuid-dev zlib1g-dev libblkid-dev -y
|
apt install --yes zfs-dkms zfsutils-linux
|
||||||
tar xfv zfs*.tar.gz
|
add-apt-repository -r 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
|
||||||
rm *.tar.gz
|
apt update
|
||||||
cd zfs*
|
rm /usr/local/sbin/zfs
|
||||||
./configure
|
|
||||||
make -j "$(nproc)"
|
|
||||||
make install
|
|
||||||
ldconfig
|
|
||||||
modprobe zfs
|
|
||||||
|
|
||||||
zfs --version
|
zfs --version
|
||||||
|
|
||||||
echo "======= partitioning the disk =========="
|
echo "======= partitioning the disk =========="
|
||||||
|
|||||||
@@ -491,15 +491,15 @@ 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
|
apt-get install --yes software-properties-common
|
||||||
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 bionic main'
|
add-apt-repository 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
|
||||||
|
apt update
|
||||||
|
apt install --yes zfs-dkms zfsutils-linux
|
||||||
|
add-apt-repository -r 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
|
||||||
apt update
|
apt update
|
||||||
rm /usr/local/sbin/zfs
|
rm /usr/local/sbin/zfs
|
||||||
apt install --yes zfs-dkms zfsutils-linux
|
|
||||||
export PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
||||||
|
|
||||||
zfs --version
|
zfs --version
|
||||||
|
|
||||||
echo "======= partitioning the disk =========="
|
echo "======= partitioning the disk =========="
|
||||||
|
|||||||
@@ -459,20 +459,14 @@ 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
|
||||||
cd "$(mktemp -d)"
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8CF63AD3F06FC659
|
||||||
wget "$(curl -Ls https://api.github.com/repos/openzfs/zfs/releases/latest| grep "browser_download_url.*tar.gz"|grep -E "tar.gz\"$"| cut -d '"' -f 4)"
|
add-apt-repository 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
|
||||||
apt update
|
apt update
|
||||||
apt install libssl-dev uuid-dev zlib1g-dev libblkid-dev -y
|
apt install --yes zfs-dkms zfsutils-linux
|
||||||
tar xfv zfs*.tar.gz
|
add-apt-repository -r 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
|
||||||
rm *.tar.gz
|
apt update
|
||||||
cd zfs*
|
rm /usr/local/sbin/zfs
|
||||||
./configure
|
|
||||||
make -j "$(nproc)"
|
|
||||||
make install
|
|
||||||
ldconfig
|
|
||||||
modprobe zfs
|
|
||||||
|
|
||||||
zfs --version
|
zfs --version
|
||||||
|
|
||||||
echo "======= partitioning the disk =========="
|
echo "======= partitioning the disk =========="
|
||||||
@@ -698,6 +692,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 "add-apt-repository --yes ppa:jonathonf/zfs"
|
||||||
chroot_execute "apt install --yes zfs-initramfs zfs-dkms zfsutils-linux"
|
chroot_execute "apt install --yes zfs-initramfs zfs-dkms zfsutils-linux"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -459,20 +459,14 @@ 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
|
||||||
cd "$(mktemp -d)"
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8CF63AD3F06FC659
|
||||||
wget "$(curl -Ls https://api.github.com/repos/openzfs/zfs/releases/latest| grep "browser_download_url.*tar.gz"|grep -E "tar.gz\"$"| cut -d '"' -f 4)"
|
add-apt-repository 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
|
||||||
apt update
|
apt update
|
||||||
apt install libssl-dev uuid-dev zlib1g-dev libblkid-dev -y
|
apt install --yes zfs-dkms zfsutils-linux
|
||||||
tar xfv zfs*.tar.gz
|
add-apt-repository -r 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
|
||||||
rm *.tar.gz
|
apt update
|
||||||
cd zfs*
|
rm /usr/local/sbin/zfs
|
||||||
./configure
|
|
||||||
make -j "$(nproc)"
|
|
||||||
make install
|
|
||||||
ldconfig
|
|
||||||
modprobe zfs
|
|
||||||
|
|
||||||
zfs --version
|
zfs --version
|
||||||
|
|
||||||
echo "======= partitioning the disk =========="
|
echo "======= partitioning the disk =========="
|
||||||
@@ -699,6 +693,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 "add-apt-repository --yes ppa:jonathonf/zfs"
|
||||||
chroot_execute "apt install --yes zfs-initramfs zfs-dkms zfsutils-linux"
|
chroot_execute "apt install --yes zfs-initramfs zfs-dkms zfsutils-linux"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user