hetzner-dedicated/zfs: Install zfsutils-linux from apt
This commit is contained in:
parent
02a4ad2e18
commit
1e5604040f
|
@ -26,8 +26,6 @@
|
||||||
# * exports of env vars are added throughout the script in case you want to run it manually
|
# * exports of env vars are added throughout the script in case you want to run it manually
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
set -euox pipefail
|
|
||||||
|
|
||||||
# ORIGINAL WARNING: on 2023/07/16 the rescue system of hetzner boots with kernel 6.3.7 which
|
# ORIGINAL WARNING: on 2023/07/16 the rescue system of hetzner boots with kernel 6.3.7 which
|
||||||
# is by default not supported by the latest debian package. You need to update to debian
|
# is by default not supported by the latest debian package. You need to update to debian
|
||||||
# unstable to proceed with the zfs installation.
|
# unstable to proceed with the zfs installation.
|
||||||
|
@ -35,12 +33,14 @@ set -euox pipefail
|
||||||
# NEW WARNING: Upgrading to unstable is too much work, maybe just downloading zfs and building it is easier.
|
# NEW WARNING: Upgrading to unstable is too much work, maybe just downloading zfs and building it is easier.
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
apt install -y dpkg-dev linux-headers-$(uname -r) linux-image-amd64 sudo parted
|
apt install -y dpkg-dev linux-headers-$(uname -r) linux-image-amd64 sudo parted zfsutils-linux libssl-dev uuid-dev zlib1g-dev libblkid-dev
|
||||||
|
|
||||||
|
set -euox pipefail
|
||||||
|
|
||||||
|
# TODO: This part is slow and not idempotent, so it needs to be commented out on
|
||||||
|
# subsequent runs
|
||||||
cd "$(mktemp -d)"
|
cd "$(mktemp -d)"
|
||||||
wget "$(curl -Ls https://api.github.com/repos/openzfs/zfs/releases/latest| grep -E "browser_download_url.*\.tar.gz\"$"| cut -d '"' -f 4)"
|
wget "$(curl -Ls https://api.github.com/repos/openzfs/zfs/releases/latest| grep -E "browser_download_url.*\.tar.gz\"$"| cut -d '"' -f 4)"
|
||||||
apt update
|
|
||||||
apt install libssl-dev uuid-dev zlib1g-dev libblkid-dev -y
|
|
||||||
tar xfv zfs*.tar.gz && rm zfs*.tar.gz
|
tar xfv zfs*.tar.gz && rm zfs*.tar.gz
|
||||||
cd zfs*
|
cd zfs*
|
||||||
./configure && make -j "$(nproc)"
|
./configure && make -j "$(nproc)"
|
||||||
|
|
Loading…
Reference in a new issue