summarylogtreecommitdiffstats
path: root/60-dracut-remove.hook
diff options
context:
space:
mode:
Diffstat (limited to '60-dracut-remove.hook')
-rw-r--r--60-dracut-remove.hook10
1 files changed, 10 insertions, 0 deletions
diff --git a/60-dracut-remove.hook b/60-dracut-remove.hook
new file mode 100644
index 000000000000..f88ee0cae581
--- /dev/null
+++ b/60-dracut-remove.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Type = Path
+Operation = Remove
+Target = usr/lib/modules/*/pkgbase
+
+[Action]
+Description = Removing dracut modules...
+When = PreTransaction
+Exec = /usr/local/share/libalpm/scripts/dracut-remove
+NeedsTargets