diff options
author | Giancarlo Razzolini <grazzolini@archlinux.org> | 2019-10-09 05:05:33 +0200 |
---|---|---|
committer | Giancarlo Razzolini <grazzolini@archlinux.org> | 2019-10-09 05:05:33 +0200 |
commit | b85056e0096172d01ff6ce5f7c14c3ca5664a939 (patch) | |
tree | 82a45c36520e4aff6ea64d91b4080e570a516a4f /libalpm/hooks | |
parent | 9ae6b1f928ef11e277437740908871ab535b655d (diff) | |
download | mkinitcpio-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.
Diffstat (limited to 'libalpm/hooks')
-rw-r--r-- | libalpm/hooks/90-mkinitcpio.hook | 17 |
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 |