From b2d9f8e184d3da5e9c5e789de39eb401ac5d6cfe Mon Sep 17 00:00:00 2001 From: Lichen Liu Date: Mon, 29 Apr 2024 10:05:36 +0800 Subject: [PATCH] Remove unused scriptlets Resolves: RHEL-29044 Upstream: Fedora Conflict: None commit a442b4e51222114cbed354f298fce8f37c88cc75 Author: Coiby Xu Date: Tue Mar 26 19:08:00 2024 +0800 Remove unused scriptlets Suggested-by: Philipp Rudo Signed-off-by: Coiby Xu Reviewed-by: Philipp Rudo Reviewed-by: Dave Young Signed-off-by: Lichen Liu --- kexec-tools.spec | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/kexec-tools.spec b/kexec-tools.spec index 1db9654..528da85 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -318,27 +318,6 @@ servicelog_notify --remove --command=/usr/lib/kdump/kdump-migrate-action.sh >/de %endif %systemd_preun kdump.service -%triggerin -n kdump-utils -- kernel-kdump -touch %{_sysconfdir}/kdump.conf - - -%triggerpostun -n kdump-utils -- kernel kernel-xen kernel-debug kernel-PAE kernel-kdump -# List out the initrds here, strip out version nubmers -# and search for corresponding kernel installs, if a kernel -# is not found, remove the corresponding kdump initrd - - -IMGDIR=/boot -for i in `ls $IMGDIR/initramfs*kdump.img 2>/dev/null` -do - KDVER=`echo $i | sed -e's/^.*initramfs-//' -e's/kdump.*$//'` - if [ ! -e $IMGDIR/vmlinuz-$KDVER ] - then - # We have found an initrd with no corresponding kernel - # so we should be able to remove it - rm -f $i - fi -done %posttrans -n kdump-utils # don't try to systemctl preset the kdump service for old kexec-tools