mirror of
https://github.com/terem42/zfs-hetzner-vm.git
synced 2025-12-22 14:58:32 +00:00
new install
This commit is contained in:
@@ -492,18 +492,13 @@ done
|
||||
|
||||
echo "======= installing zfs on rescue system =========="
|
||||
echo "zfs-dkms zfs-dkms/note-incompatible-licenses note true" | debconf-set-selections
|
||||
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)"
|
||||
apt-get install software-properties-common
|
||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8CF63AD3F06FC659
|
||||
add-apt-repository 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu bionic main'
|
||||
apt update
|
||||
apt install libssl-dev uuid-dev zlib1g-dev libblkid-dev -y
|
||||
tar xfv zfs*.tar.gz
|
||||
rm *.tar.gz
|
||||
cd zfs*
|
||||
./configure
|
||||
make -j "$(nproc)"
|
||||
make install
|
||||
ldconfig
|
||||
modprobe 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user