mirror of
https://github.com/Frogging-Family/nvidia-all
synced 2024-10-30 15:20:10 +00:00
Adding a hook to automatically update initramfs images (#63)
* Add a hook to automatically update initramfs images * Removing the warning about manually updating initramfs
This commit is contained in:
parent
d621f9d527
commit
1bb6d2e88f
6
PKGBUILD
6
PKGBUILD
@ -252,6 +252,7 @@ fi
|
|||||||
source=($_source_name
|
source=($_source_name
|
||||||
'10-nvidia-drm-outputclass.conf'
|
'10-nvidia-drm-outputclass.conf'
|
||||||
'nvidia-utils-tkg.sysusers'
|
'nvidia-utils-tkg.sysusers'
|
||||||
|
'nvidia-tkg.hook'
|
||||||
'linux-version.diff' # include linux version
|
'linux-version.diff' # include linux version
|
||||||
'01-ipmi-vm.diff' # ipmi & vm patch for older than 415.22 releases (2018.12.7) (396.xx)
|
'01-ipmi-vm.diff' # ipmi & vm patch for older than 415.22 releases (2018.12.7) (396.xx)
|
||||||
'02-ipmi-vm.diff' # ipmi & vm patch for older than 415.22 releases (2018.12.7) (addon for 410+)
|
'02-ipmi-vm.diff' # ipmi & vm patch for older than 415.22 releases (2018.12.7) (addon for 410+)
|
||||||
@ -287,6 +288,7 @@ msg2 "Selected driver integrity check behavior (md5sum or SKIP): $_md5sum" # If
|
|||||||
md5sums=("$_md5sum"
|
md5sums=("$_md5sum"
|
||||||
'cb27b0f4a78af78aa96c5aacae23256c'
|
'cb27b0f4a78af78aa96c5aacae23256c'
|
||||||
'3d2894e71d81570bd00bce416d3e547d'
|
'3d2894e71d81570bd00bce416d3e547d'
|
||||||
|
'f2166eb150cfdc9d2dd8ec380c3e5583'
|
||||||
'7a825f41ada7e106c8c0b713a49b3bfa'
|
'7a825f41ada7e106c8c0b713a49b3bfa'
|
||||||
'd961d1dce403c15743eecfe3201e4b6a'
|
'd961d1dce403c15743eecfe3201e4b6a'
|
||||||
'14460615a9d4e247c8d9bcae8776ed48'
|
'14460615a9d4e247c8d9bcae8776ed48'
|
||||||
@ -1338,6 +1340,8 @@ if [ "$_dkms" = "false" ] || [ "$_dkms" = "full" ]; then
|
|||||||
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
|
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
|
||||||
echo "nvidia-uvm" |
|
echo "nvidia-uvm" |
|
||||||
install -Dm644 /dev/stdin "${pkgdir}/etc/modules-load.d/${pkgname}.conf"
|
install -Dm644 /dev/stdin "${pkgdir}/etc/modules-load.d/${pkgname}.conf"
|
||||||
|
|
||||||
|
install -Dm644 "${srcdir}/nvidia-tkg.hook" "${pkgdir}/usr/share/libalpm/hooks/nvidia-tkg.hook"
|
||||||
}
|
}
|
||||||
package_nvidia-tkg() {
|
package_nvidia-tkg() {
|
||||||
nvidia-tkg
|
nvidia-tkg
|
||||||
@ -1456,6 +1460,8 @@ if [ "$_dkms" = "true" ] || [ "$_dkms" = "full" ]; then
|
|||||||
echo "nvidia-uvm" |
|
echo "nvidia-uvm" |
|
||||||
install -Dm644 /dev/stdin "${pkgdir}/etc/modules-load.d/${pkgname}.conf"
|
install -Dm644 /dev/stdin "${pkgdir}/etc/modules-load.d/${pkgname}.conf"
|
||||||
|
|
||||||
|
install -Dm644 "${srcdir}/nvidia-tkg.hook" "${pkgdir}/usr/share/libalpm/hooks/nvidia-tkg.hook"
|
||||||
|
|
||||||
install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 "${srcdir}/${_pkg}/LICENSE"
|
install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 "${srcdir}/${_pkg}/LICENSE"
|
||||||
}
|
}
|
||||||
package_nvidia-dkms-tkg() {
|
package_nvidia-dkms-tkg() {
|
||||||
|
16
system/nvidia-tkg.hook
Normal file
16
system/nvidia-tkg.hook
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[Trigger]
|
||||||
|
Operation=Install
|
||||||
|
Operation=Upgrade
|
||||||
|
Operation=Remove
|
||||||
|
Type=Package
|
||||||
|
Target=nvidia-tkg
|
||||||
|
Target=nvidia-dkms-tkg
|
||||||
|
Target=nvidia-dev-tkg
|
||||||
|
Target=nvidia-dev-dkms-tkg
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description=Update Nvidia modules in initcpio
|
||||||
|
Depends=mkinitcpio
|
||||||
|
When=PostTransaction
|
||||||
|
NeedsTargets
|
||||||
|
Exec=/usr/bin/mkinitcpio -P
|
@ -29,13 +29,6 @@ post_install() {
|
|||||||
if pidof Xorg >/dev/null; then
|
if pidof Xorg >/dev/null; then
|
||||||
echo ":: Please reboot or exit X to unload the current module."
|
echo ":: Please reboot or exit X to unload the current module."
|
||||||
fi
|
fi
|
||||||
echo ""
|
|
||||||
echo -e "\e[31m###########################################################\e[0m"
|
|
||||||
echo ""
|
|
||||||
echo -e "\e[31m It is recommended to run mkinitcpio -P after installation\e[0m"
|
|
||||||
echo ""
|
|
||||||
echo -e "\e[31m###########################################################\e[0m"
|
|
||||||
echo ""
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
|
Loading…
Reference in New Issue
Block a user