aboutsummarylogtreecommitdiffstats
path: root/50-save-kernel-modules-pre.hook
diff options
context:
space:
mode:
authorJonathan Kotta2020-03-14 20:32:25 -0500
committerJonathan Kotta2020-03-14 20:32:25 -0500
commitf5dff153c22dfb3f59cd3d714781bf9c57949e05 (patch)
tree74f14f66e5d9c8e31e86190265d65f3d35f74fd5 /50-save-kernel-modules-pre.hook
downloadaur-f5dff153c22dfb3f59cd3d714781bf9c57949e05.tar.gz
initial commit
Diffstat (limited to '50-save-kernel-modules-pre.hook')
-rw-r--r--50-save-kernel-modules-pre.hook10
1 files changed, 10 insertions, 0 deletions
diff --git a/50-save-kernel-modules-pre.hook b/50-save-kernel-modules-pre.hook
new file mode 100644
index 000000000000..6c03af451f05
--- /dev/null
+++ b/50-save-kernel-modules-pre.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Operation = Upgrade
+Operation = Remove
+Type = Path
+Target = usr/lib/modules/*/vmlinuz
+
+[Action]
+Description = Saving modules of the running kernel...
+When = PreTransaction
+Exec = /usr/lib/modules/saved-kernel-modules/pre-hook