summarylogtreecommitdiffstats
path: root/99-linux.hook
diff options
context:
space:
mode:
Diffstat (limited to '99-linux.hook')
-rw-r--r--99-linux.hook9
1 files changed, 9 insertions, 0 deletions
diff --git a/99-linux.hook b/99-linux.hook
new file mode 100644
index 00000000000..416cb9424d0
--- /dev/null
+++ b/99-linux.hook
@@ -0,0 +1,9 @@
+[Trigger]
+Type = File
+Operation = Remove
+Target = boot/vmlinuz-%PKGBASE%
+
+[Action]
+Description = Remove %PKGBASE% initramfs files...
+When = PreTransaction
+Exec = /usr/bin/rm -f /boot/initramfs-%PKGBASE%.img /boot/initramfs-%PKGBASE%-fallback.img