nvidia: use new initramfs-regenerate trigger
This commit is contained in:
parent
d073c08d9d
commit
5868daf010
3 changed files with 5 additions and 24 deletions
|
@ -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
|
|
@ -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
|
|
@ -4,7 +4,7 @@ _desc="NVIDIA drivers for linux"
|
|||
|
||||
pkgname=nvidia
|
||||
version=460.84
|
||||
revision=1
|
||||
revision=2
|
||||
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue