diff options
author | Giancarlo Razzolini <grazzolini@archlinux.org> | 2019-10-29 02:30:10 +0100 |
---|---|---|
committer | Giancarlo Razzolini <grazzolini@archlinux.org> | 2019-10-29 02:30:10 +0100 |
commit | b22d1f578396cae9adec0389bc470cf321ae139f (patch) | |
tree | 9ceced13c7b964d7f14cf2d714c10a5d940a7cd7 /libalpm/hooks/60-mkinitcpio-remove.hook | |
parent | f949879ce6de354e02e06daa81e9257fdab07699 (diff) | |
download | mkinitcpio-b22d1f578396cae9adec0389bc470cf321ae139f.tar.gz mkinitcpio-b22d1f578396cae9adec0389bc470cf321ae139f.tar.xz |
libalpm/hooks: Change the remove hook to PreTransaction and also match on mkinitcpio-git.
Since the hook actually needs to be able to match on a kernel pkgbase, it needs to be ran
PreTransaction and not Post. Also add an additional target on mkinitcpio-git, to aid development.
Diffstat (limited to 'libalpm/hooks/60-mkinitcpio-remove.hook')
-rw-r--r-- | libalpm/hooks/60-mkinitcpio-remove.hook | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libalpm/hooks/60-mkinitcpio-remove.hook b/libalpm/hooks/60-mkinitcpio-remove.hook index ba2b649..ab71ed6 100644 --- a/libalpm/hooks/60-mkinitcpio-remove.hook +++ b/libalpm/hooks/60-mkinitcpio-remove.hook @@ -7,9 +7,10 @@ Target = usr/lib/modules/*/vmlinuz Type = Package Operation = Remove Target = mkinitcpio +Target = mkinitcpio-git [Action] Description = Removing linux initcpios... -When = PostTransaction +When = PreTransaction Exec = /usr/share/libalpm/scripts/mkinitcpio-remove NeedsTargets |