summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-09 05:05:33 +0200
committerGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-09 05:05:33 +0200
commitb85056e0096172d01ff6ce5f7c14c3ca5664a939 (patch)
tree82a45c36520e4aff6ea64d91b4080e570a516a4f
parent9ae6b1f928ef11e277437740908871ab535b655d (diff)
downloadmkinitcpio-b85056e0096172d01ff6ce5f7c14c3ca5664a939.tar.gz
mkinitcpio-b85056e0096172d01ff6ce5f7c14c3ca5664a939.tar.xz
Add a new mkinitcpio pacman hook
This hook runs on mkinitcpio updates as well as on kernels containing the pkgbase file on their modules directory. It calls the mkinitcpio script.
-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