summaryrefslogtreecommitdiffstats
path: root/libalpm
diff options
context:
space:
mode:
authorGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-09 19:43:36 +0200
committerGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-09 19:43:36 +0200
commit2adc98944dfe0c40da44b6a2d8877af68b1f2bbe (patch)
tree89e5e12169d5dd2eb2b7d2d2fe531d214641f2ea /libalpm
parentace8c6de2b01d7d7b23c5d6db88daeac80df9448 (diff)
downloadmkinitcpio-2adc98944dfe0c40da44b6a2d8877af68b1f2bbe.tar.gz
mkinitcpio-2adc98944dfe0c40da44b6a2d8877af68b1f2bbe.tar.xz
Change the hook name and change the name of the script called by it
The hook was renamed to reflect it will be triggered only on install (or upgrades). This is because we will have a hook/script pair running on kernels removals as well.
Diffstat (limited to 'libalpm')
-rw-r--r--libalpm/hooks/90-mkinitcpio-install.hook17
1 files changed, 17 insertions, 0 deletions
diff --git a/libalpm/hooks/90-mkinitcpio-install.hook b/libalpm/hooks/90-mkinitcpio-install.hook
new file mode 100644
index 0000000..a13451e
--- /dev/null
+++ b/libalpm/hooks/90-mkinitcpio-install.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-install
+NeedsTargets