From 2adc98944dfe0c40da44b6a2d8877af68b1f2bbe Mon Sep 17 00:00:00 2001 From: Giancarlo Razzolini Date: Wed, 9 Oct 2019 14:43:36 -0300 Subject: 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. --- libalpm/hooks/90-mkinitcpio-install.hook | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libalpm/hooks/90-mkinitcpio-install.hook 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 -- cgit v1.2.3-24-g4f1b