add hook to regenerate grub config file (e.g., when using grub-btrfs

This commit is contained in:
James Barnett 2016-03-17 19:52:53 -05:00
parent a596a458a4
commit b4d78e7ce7

12
99_grub-config.hook Normal file
View file

@ -0,0 +1,12 @@
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = generate GRUB configuration file
Depends = grub-btrfs-git
When = PostTransaction
Exec = /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg