diff options
author | GiacoLenzo2109 | 2021-02-25 15:57:36 +0100 |
---|---|---|
committer | GiacoLenzo2109 | 2021-02-25 15:57:36 +0100 |
commit | f150e01d1a1d477525108f4e9a8075b8674b07f0 (patch) | |
tree | 414a6317584323e1ee6b8a2f0c29ec64261b7f40 /mkinitcpio-grub-update.hook | |
download | aur-croco-hooks.tar.gz |
Upload
Diffstat (limited to 'mkinitcpio-grub-update.hook')
-rw-r--r-- | mkinitcpio-grub-update.hook | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mkinitcpio-grub-update.hook b/mkinitcpio-grub-update.hook new file mode 100644 index 000000000000..0f76c21f59c4 --- /dev/null +++ b/mkinitcpio-grub-update.hook @@ -0,0 +1,21 @@ +[Trigger] +Operation = Install +Operation = Remove +Operation = Upgrade +Type = Package +Target = linux* +Target = linux-lts +Target = linux-zen +Target = linux-hardened +Target = amd-ucode +Target = intel-ucode +Target = usr/lib/modules/*/vmlinuz +Target = boot/vmlinuz* +Target = *dkms* +Target = nvidia-dkms + +[Action] +Description = mkinitcpio and grub update after transaction. +When = PostTransaction +Depends = grub +Exec = /bin/sh -c "mkinitcpio -P && /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg" |