Created
May 16, 2026 18:07
-
-
Save denisoster/1abb9ba6a6f762f0903b331dc49f2335 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /etc/pacman.d/hooks/nvidia.hook | |
| [Trigger] | |
| Operation=Install | |
| Operation=Upgrade | |
| Operation=Remove | |
| Type=Package | |
| Target=nvidia-470xx-dkms | |
| 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 | |
| [Action] | |
| Description=Update 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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment