[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = grub
Target = amd-ucode
Target = intel-ucode
Target = linux
Target = linux-lts*
Target = linux-zen*

[Action]
Description = Executing grub-mkconfig
When = PostTransaction
Exec = /bin/sh -c "grub-mkconfig -o /boot/grub/grub.cfg"