fix(dracut-strip-trigger): make trigger run later than dracut's one (#6046) (#6085)

(cherry picked from commit 560951275a)

Signed-off-by: madomado <madonuko@outlook.com>
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-08-16 22:41:01 -07:00
committed by GitHub
parent bee2514419
commit 2c2ba67028
@@ -1,6 +1,6 @@
Name: dracut-strip-trigger
Version: 0
Release: 2%?dist
Release: 3%?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 -- installonlypkg(kernel)
%triggerpostun -- installonlypkg(kernel)
dracut --force --hostonly --strip --aggressive-strip
%postun