From b22d1f578396cae9adec0389bc470cf321ae139f Mon Sep 17 00:00:00 2001 From: Giancarlo Razzolini Date: Mon, 28 Oct 2019 22:30:10 -0300 Subject: 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. --- libalpm/hooks/60-mkinitcpio-remove.hook | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-24-g4f1b