mirror of
https://github.com/Frogging-Family/nvidia-all
synced 2024-10-30 15:20:10 +00:00
Add support for dracut and booster for the hook (#163)
This commit is contained in:
parent
c758da09ff
commit
f4914fd9e5
@ -14,4 +14,4 @@ Target=nvidia-open-dkms-tkg
|
|||||||
Description=Update Nvidia modules in initcpio
|
Description=Update Nvidia modules in initcpio
|
||||||
When=PostTransaction
|
When=PostTransaction
|
||||||
NeedsTargets
|
NeedsTargets
|
||||||
Exec=/bin/sh -c 'if command -v mkinitcpio >/dev/null 2>&1; then mkinitcpio -P; else printf "\\033[31m mkinitcpio not found, please update initramfs manually\\033[0m\\n"; fi'
|
Exec=/bin/sh -c 'if command -v mkinitcpio >/dev/null 2>&1; then mkinitcpio -P; elif command -v /usr/lib/booster/regenerate_images >/dev/null 2>&1; then /usr/lib/booster/regenerate_images; elif command -v dracut >/dev/null 2>&1; then dracut --regenerate-all --force; else printf "\\033[31m The initramfs generator was not found, please update initramfs manually\\033[0m\\n"; fi'
|
||||||
|
Loading…
Reference in New Issue
Block a user