summaryrefslogtreecommitdiffstats
path: root/libalpm
diff options
context:
space:
mode:
Diffstat (limited to 'libalpm')
-rw-r--r--libalpm/hooks/90-mkinitcpio.hook17
1 files changed, 17 insertions, 0 deletions
diff --git a/libalpm/hooks/90-mkinitcpio.hook b/libalpm/hooks/90-mkinitcpio.hook
new file mode 100644
index 0000000..7599eae
--- /dev/null
+++ b/libalpm/hooks/90-mkinitcpio.hook
@@ -0,0 +1,17 @@
+[Trigger]
+Type = Package
+Operation = Install
+Operation = Upgrade
+Target = mkinitcpio*
+
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = usr/lib/modules/*/pkgbase
+
+[Action]
+Description = Updating linux initcpios...
+When = PostTransaction
+Exec = /usr/share/libalpm/scripts/mkinitcpio.script
+NeedsTargets