[Trigger] Operation=Install Operation=Upgrade Operation=Remove Type=Package Target=grub Target=linux # Change the linux part above and in the Exec line if a different kernel is used [Action] Description=Update Grub Scriptes (snapshots) Depends=mkinitcpio When=PostTransaction NeedsTargets Exec=/bin/sh -c 'grub-mkconfig -o /boot/grub/grub.cfg'