nvidia390: use new initramfs-regenerate trigger

This commit is contained in:
Andrew J. Hesford 2021-06-10 11:40:16 -04:00
parent 5868daf010
commit bfed6ebbe9
3 changed files with 4 additions and 16 deletions

View file

@ -1,7 +0,0 @@
# Regenerate initramfs.
case ${ACTION} in
post)
echo "Regenerating initramfs, please wait..."
dracut -f -q --regenerate-all
;;
esac

View file

@ -1,7 +0,0 @@
# Regenerate initramfs.
case ${ACTION} in
purge)
echo "Regenerating initramfs, please wait..."
dracut -f -q --regenerate-all
;;
esac

View file

@ -4,7 +4,7 @@ _desc="NVIDIA drivers (GeForce 400, 500 series)"
pkgname=nvidia390
version=390.143
revision=1
revision=2
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="custom:NVIDIA Proprietary"
homepage="https://www.nvidia.com"
@ -231,8 +231,10 @@ nvidia390-libs_package() {
}
nvidia390-dkms_package() {
short_desc="${_desc} - DKMS kernel module"
depends="dkms xbps-triggers>=0.121_1"
dkms_modules="nvidia ${version}"
depends="dkms"
# dkms must be before initramfs-regenerate to build modules before images
triggers="dkms initramfs-regenerate"
pkg_install() {
vmove usr/src
vmove usr/lib/modprobe.d