diff --git a/install-zfs.sh b/install-zfs.sh index cf577f6..4cc81a3 100755 --- a/install-zfs.sh +++ b/install-zfs.sh @@ -579,7 +579,7 @@ function install_host_packages { # Module compilation log: `/var/lib/dkms/zfs/0.8.2/build/make.log` (adjust according to version). # echo "zfs-dkms zfs-dkms/note-incompatible-licenses note true" | debconf-set-selections - apt install --yes libelf-dev zfs-dkms efibootmgr + apt install --yes libelf-dev zfs-dkms systemctl stop zfs-zed modprobe -r zfs @@ -588,6 +588,8 @@ function install_host_packages { fi fi + apt install --yes efibootmgr + zfs --version > "$c_zfs_module_version_log" 2>&1 } @@ -601,11 +603,13 @@ function install_host_packages_Debian { echo "deb http://deb.debian.org/debian buster-backports main contrib" >> /etc/apt/sources.list apt update - apt install --yes -t buster-backports zfs-dkms efibootmgr + apt install --yes -t buster-backports zfs-dkms modprobe zfs fi + apt install --yes efibootmgr + zfs --version > "$c_zfs_module_version_log" 2>&1 } @@ -645,7 +649,7 @@ function install_host_packages_UbuntuServer { # this will be a no-op. # apt update - apt install -y "linux-headers-$(uname -r)" efibootmgr + apt install -y "linux-headers-$(uname -r)" install_host_packages fi