summarylogtreecommitdiffstats
path: root/grub-initrd-generation-fix.hook
diff options
context:
space:
mode:
authorlibrewish2022-04-15 15:18:53 +0530
committerlibrewish2022-04-15 15:18:53 +0530
commit9996fe5c2e79199554f8e4796fce963054ab1ddd (patch)
treede9aca52b88ffb6bc7bcd1d08e2ba19ef500ddbd /grub-initrd-generation-fix.hook
parent69cab91b343aef6d0c887aeae6cbc0ddbdcbccc0 (diff)
downloadaur-9996fe5c2e79199554f8e4796fce963054ab1ddd.tar.gz
add grub-initrd-generation-fix
Diffstat (limited to 'grub-initrd-generation-fix.hook')
-rw-r--r--grub-initrd-generation-fix.hook13
1 files changed, 13 insertions, 0 deletions
diff --git a/grub-initrd-generation-fix.hook b/grub-initrd-generation-fix.hook
new file mode 100644
index 00000000000..f8bbd9d3604
--- /dev/null
+++ b/grub-initrd-generation-fix.hook
@@ -0,0 +1,13 @@
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Type = Package
+Target = grub
+Target = grub-silent
+Target = os-prober
+Target = os-prober-btrfs
+
+[Action]
+Description = Fix 'grub' and 'os-prober' after upgrading either of them....
+When = PostTransaction
+Exec = /usr/share/libalpm/scripts/grub-initrd-generation-fix