summarylogtreecommitdiffstats
path: root/linux-preserve-modules.hook
diff options
context:
space:
mode:
Diffstat (limited to 'linux-preserve-modules.hook')
-rw-r--r--linux-preserve-modules.hook13
1 files changed, 13 insertions, 0 deletions
diff --git a/linux-preserve-modules.hook b/linux-preserve-modules.hook
new file mode 100644
index 000000000000..e60955a167b0
--- /dev/null
+++ b/linux-preserve-modules.hook
@@ -0,0 +1,13 @@
+[Trigger]
+Type = Path
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/lib/modules/*/
+Target = !usr/lib/modules/*/?*
+
+[Action]
+Description = Preserving old linux kernel modules...
+When = PreTransaction
+Exec = /usr/share/libalpm/scripts/linux-preserve-modules
+NeedsTargets