summarylogtreecommitdiffstats
path: root/60-kernel-install-remove.hook
diff options
context:
space:
mode:
Diffstat (limited to '60-kernel-install-remove.hook')
-rw-r--r--60-kernel-install-remove.hook24
1 files changed, 9 insertions, 15 deletions
diff --git a/60-kernel-install-remove.hook b/60-kernel-install-remove.hook
index 2f8a29a47a23..52e45ef5039c 100644
--- a/60-kernel-install-remove.hook
+++ b/60-kernel-install-remove.hook
@@ -3,29 +3,23 @@ Type = Path
Operation = Upgrade
Operation = Remove
Target = usr/lib/modules/*/vmlinuz
+Target = usr/lib/modules/*/extramodules/*
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Operation = Remove
-Target = usr/lib/kernel/install.*
-Target = etc/kernel/install.*
+Target = boot/*-ucode.img
+Target = usr/lib/initcpio/*
+Target = usr/lib/initcpio/*/*
+Target = usr/lib/dracut/*
+Target = usr/lib/dracut/*/*
+Target = usr/lib/dracut/*/*/*
+Target = usr/lib/kernel/*
+Target = usr/lib/kernel/*/*
Target = usr/src/*/dkms.conf
-[Trigger]
-Type = Package
-Operation = Install
-Operation = Upgrade
-Operation = Remove
-Target = systemd
-Target = amd-ucode
-Target = intel-ucode
-Target = plymouth
-Target = cryptsetup
-Target = dracut
-Target = mkinitcpio
-
[Action]
Description = Removing kernel and initrd from $BOOT... (kernel-install)
When = PostTransaction