From dba88235adca433d5338597e6261e07e562f3372 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 9 Jul 2025 05:40:19 -0700 Subject: [PATCH] fix(dracut-strip-trigger): support other kernels (#5798) (#5801) also account for stuff like `kernel-cachyos` which provides `installonlypkg(kernel)` (cherry picked from commit a6b260e24c7843b2c023f0175197ab4f881c6501) Signed-off-by: madomado Co-authored-by: madomado --- anda/system/dracut-strip-trigger/dracut-strip-trigger.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anda/system/dracut-strip-trigger/dracut-strip-trigger.spec b/anda/system/dracut-strip-trigger/dracut-strip-trigger.spec index 3d6efb4912..52d385719a 100644 --- a/anda/system/dracut-strip-trigger/dracut-strip-trigger.spec +++ b/anda/system/dracut-strip-trigger/dracut-strip-trigger.spec @@ -1,6 +1,6 @@ Name: dracut-strip-trigger Version: 0 -Release: 1%?dist +Release: 2%?dist Summary: Strip initramfs aggressively License: GPL-3.0-only Requires(post): dracut @@ -29,7 +29,7 @@ dracut --force --parallel --regenerate-all --hostonly --strip --aggressive-strip echo 'All non-rescue initramfs have been regenerated.' echo 'If you have problems booting up, use the rescue image, then uninstall `%name`.' -%triggerin -- kernel +%triggerin -- installonlypkg(kernel) dracut --force --hostonly --strip --aggressive-strip %postun