diff --git a/srcpkgs/nvidia/nvidia-dkms.INSTALL b/srcpkgs/nvidia/nvidia-dkms.INSTALL deleted file mode 100644 index 943fc6e77f..0000000000 --- a/srcpkgs/nvidia/nvidia-dkms.INSTALL +++ /dev/null @@ -1,13 +0,0 @@ -case "${ACTION}" in -post) - if [ "${ARCH}" = "x86_64" ]; then - # Regenerate initramfs. - echo "Regenerating initramfs, please wait..." - dracut -f -q --regenerate-all - else - echo "Nvidia has dropped support for 32-bit kernels.\n" - echo "Please consider installing the nvidia390 package as an alternative.\n" - echo "This package is now only useful if you're using a x86_64 kernel.\n" - fi - ;; -esac diff --git a/srcpkgs/nvidia/nvidia-dkms.REMOVE b/srcpkgs/nvidia/nvidia-dkms.REMOVE deleted file mode 100644 index c10a4035d6..0000000000 --- a/srcpkgs/nvidia/nvidia-dkms.REMOVE +++ /dev/null @@ -1,9 +0,0 @@ -# Regenerate initramfs. -case ${ACTION} in -purge) - if [ "${ARCH}" = "x86_64" ]; then - echo "Regenerating initramfs, please wait..." - dracut -f -q --regenerate-all - fi - ;; -esac diff --git a/srcpkgs/nvidia/template b/srcpkgs/nvidia/template index ccbdb8e188..c659027b1b 100644 --- a/srcpkgs/nvidia/template +++ b/srcpkgs/nvidia/template @@ -4,7 +4,7 @@ _desc="NVIDIA drivers for linux" pkgname=nvidia version=460.84 -revision=1 +revision=2 maintainer="Andrew Benson " license="custom:NVIDIA Proprietary" homepage="https://www.nvidia.com" @@ -278,8 +278,11 @@ nvidia-libs_package() { nvidia-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