mirror of
https://github.com/terem42/zfs-hetzner-vm.git
synced 2025-12-22 23:08:36 +00:00
Update hetzner-debian11-zfs-setup.sh
This commit is contained in:
@@ -492,14 +492,6 @@ 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
|
||||||
if [[ $v_zfs_experimental == "1" ]]; then
|
|
||||||
apt install --yes man wget curl software-properties-common nano htop gnupg
|
|
||||||
wget -O - https://terem42.github.io/zfs-debian/apt_pub.gpg | apt-key add -
|
|
||||||
add-apt-repository 'deb https://terem42.github.io/zfs-debian/public zfs-debian-experimental main'
|
|
||||||
apt update
|
|
||||||
apt install --yes libelf-dev
|
|
||||||
apt install -t zfs-debian-experimental --yes zfs-dkms zfsutils-linux
|
|
||||||
else
|
|
||||||
cd "$(mktemp -d)"
|
cd "$(mktemp -d)"
|
||||||
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)"
|
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 update
|
apt update
|
||||||
@@ -512,7 +504,7 @@ echo "======= installing zfs on rescue system =========="
|
|||||||
make install
|
make install
|
||||||
ldconfig
|
ldconfig
|
||||||
modprobe zfs
|
modprobe zfs
|
||||||
fi
|
|
||||||
zfs --version
|
zfs --version
|
||||||
|
|
||||||
echo "======= partitioning the disk =========="
|
echo "======= partitioning the disk =========="
|
||||||
|
|||||||
Reference in New Issue
Block a user