aboutsummarylogtreecommitdiffstats
path: root/grub-fix-initrd-generation.hook
diff options
context:
space:
mode:
authorGiacoLenzo21092021-02-25 15:57:36 +0100
committerGiacoLenzo21092021-02-25 15:57:36 +0100
commitf150e01d1a1d477525108f4e9a8075b8674b07f0 (patch)
tree414a6317584323e1ee6b8a2f0c29ec64261b7f40 /grub-fix-initrd-generation.hook
downloadaur-f150e01d1a1d477525108f4e9a8075b8674b07f0.tar.gz
Upload
Diffstat (limited to 'grub-fix-initrd-generation.hook')
-rw-r--r--grub-fix-initrd-generation.hook14
1 files changed, 14 insertions, 0 deletions
diff --git a/grub-fix-initrd-generation.hook b/grub-fix-initrd-generation.hook
new file mode 100644
index 000000000000..8ca6bf0fe115
--- /dev/null
+++ b/grub-fix-initrd-generation.hook
@@ -0,0 +1,14 @@
+[Trigger]
+Operation = Upgrade
+Operation = Install
+Operation = Remove
+Type = Package
+Target = grub
+Target = os-prober
+
+[Action]
+Description = Fix 'grub' and 'os-prober' after upgrading either of them.
+When = PostTransaction
+Depends = grub
+Depends = os-prober
+Exec = /usr/bin/grub-fix-initrd-generation