This commit is contained in:
committer
2024-08-26 07:27:58 -05:00
parent 398decd81e
commit 4321b578eb
2 changed files with 49 additions and 15 deletions

View File

@@ -3,14 +3,18 @@ Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia
# Uncomment the installed NVIDIA package
#Target=nvidia
Target=nvidia-open
#Target=nvidia-lts
# If running a different kernel, modify below to match
Target=linux
# Adjust line(6) above to match your driver, e.g. Target=nvidia-470xx-dkms
# Change line(7) above, if you are not using the regular kernel For example, Target=linux-lts
# Adjust line(6-9) above to match your driver, e.g. Target=nvidia-470xx-dkms
# Change line(11) above, if you are not using the regular kernel For example, Target=linux-lts
[Action]
Description=Update Nvidia module in initcpio
Description=Updating NVIDIA module in initcpio
Depends=mkinitcpio
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P'
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux*) exit 0; esac; done; /usr/bin/mkinitcpio -P'