summaryrefslogtreecommitdiffstats
path: root/libalpm/hooks/60-mkinitcpio-remove.hook
diff options
context:
space:
mode:
Diffstat (limited to 'libalpm/hooks/60-mkinitcpio-remove.hook')
-rw-r--r--libalpm/hooks/60-mkinitcpio-remove.hook16
1 files changed, 16 insertions, 0 deletions
diff --git a/libalpm/hooks/60-mkinitcpio-remove.hook b/libalpm/hooks/60-mkinitcpio-remove.hook
new file mode 100644
index 0000000..ab71ed6
--- /dev/null
+++ b/libalpm/hooks/60-mkinitcpio-remove.hook
@@ -0,0 +1,16 @@
+[Trigger]
+Type = File
+Operation = Remove
+Target = usr/lib/modules/*/vmlinuz
+
+[Trigger]
+Type = Package
+Operation = Remove
+Target = mkinitcpio
+Target = mkinitcpio-git
+
+[Action]
+Description = Removing linux initcpios...
+When = PreTransaction
+Exec = /usr/share/libalpm/scripts/mkinitcpio-remove
+NeedsTargets