aboutsummarylogtreecommitdiffstats
path: root/99-grub-ll.hook
diff options
context:
space:
mode:
authoryar2017-04-01 11:36:56 -0700
committeryar2017-04-01 11:37:34 -0700
commit3228686982d87f5ec81dac44dabb5c0bf9ed9a88 (patch)
tree959f0ec7576e4907b3a04aba530896e99da070be /99-grub-ll.hook
parentc4b3c4e790ded3f3a966b36db7d9f10ce542ff0e (diff)
downloadaur-3228686982d87f5ec81dac44dabb5c0bf9ed9a88.tar.gz
automatically rebuild grub menu
idk why arch's mainline packages don't use pacman hooks to rebuild grub. maybe i'll find out
Diffstat (limited to '99-grub-ll.hook')
-rw-r--r--99-grub-ll.hook10
1 files changed, 10 insertions, 0 deletions
diff --git a/99-grub-ll.hook b/99-grub-ll.hook
new file mode 100644
index 000000000000..fe2f64ce4ce9
--- /dev/null
+++ b/99-grub-ll.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = etc/grub.d/*
+
+[Action]
+Description = Updating grub menu
+When = PostTransaction
+Exec = /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg