Merge pull request #113 from saveriomiroddi/fix_packages_installation

Correct location of efibootmgr package installation
This commit is contained in:
Saverio Miroddi 2020-05-05 14:38:15 +02:00
commit 9b085fc063
1 changed files with 7 additions and 3 deletions

View File

@ -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). # 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 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 systemctl stop zfs-zed
modprobe -r zfs modprobe -r zfs
@ -588,6 +588,8 @@ function install_host_packages {
fi fi
fi fi
apt install --yes efibootmgr
zfs --version > "$c_zfs_module_version_log" 2>&1 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 echo "deb http://deb.debian.org/debian buster-backports main contrib" >> /etc/apt/sources.list
apt update apt update
apt install --yes -t buster-backports zfs-dkms efibootmgr apt install --yes -t buster-backports zfs-dkms
modprobe zfs modprobe zfs
fi fi
apt install --yes efibootmgr
zfs --version > "$c_zfs_module_version_log" 2>&1 zfs --version > "$c_zfs_module_version_log" 2>&1
} }
@ -645,7 +649,7 @@ function install_host_packages_UbuntuServer {
# this will be a no-op. # this will be a no-op.
# #
apt update apt update
apt install -y "linux-headers-$(uname -r)" efibootmgr apt install -y "linux-headers-$(uname -r)"
install_host_packages install_host_packages
fi fi