mirror of
https://github.com/terem42/zfs-hetzner-vm.git
synced 2025-12-22 23:08:36 +00:00
new install
This commit is contained in:
@@ -492,18 +492,13 @@ 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 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 bionic main'
|
||||||
apt update
|
apt update
|
||||||
apt install libssl-dev uuid-dev zlib1g-dev libblkid-dev -y
|
rm /usr/local/sbin/zfs
|
||||||
tar xfv zfs*.tar.gz
|
apt install --yes zfs-dkms zfsutils-linux
|
||||||
rm *.tar.gz
|
export PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
cd zfs*
|
|
||||||
./configure
|
|
||||||
make -j "$(nproc)"
|
|
||||||
make install
|
|
||||||
ldconfig
|
|
||||||
modprobe zfs
|
|
||||||
|
|
||||||
zfs --version
|
zfs --version
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user