rpms/kexec-tools/devel kexec-tools.spec,1.102,1.103

Neil Horman (nhorman) fedora-extras-commits at redhat.com
Mon Oct 1 13:03:22 UTC 2007


Author: nhorman

Update of /cvs/extras/rpms/kexec-tools/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11955

Modified Files:
	kexec-tools.spec 
Log Message:
Resolves: bz 308151


Index: kexec-tools.spec
===================================================================
RCS file: /cvs/extras/rpms/kexec-tools/devel/kexec-tools.spec,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -r1.102 -r1.103
--- kexec-tools.spec	30 Aug 2007 16:19:16 -0000	1.102
+++ kexec-tools.spec	1 Oct 2007 13:02:50 -0000	1.103
@@ -1,6 +1,6 @@
 Name: kexec-tools
 Version: 1.102pre 
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPL
 Group: Applications/System
 Summary: The kexec/kdump userspace component.
@@ -190,9 +190,10 @@
 # is not found, remove the corresponding kdump initrd
 
 #start by getting a list of all the kdump initrds
-for i in `ls /boot/initrd*kdump.img`
+for i in /boot/initrd*kdump.img
 do
-	KDVER=`echo $i | sed -e's/^.*initrd-//' -e's/kdump.*$//'`
+	[ -e "$i" ] || continue
+	KDVER="${i##*initrd-}" ; KDVER="${KDVER%%kdump*}"
 	if [ ! -e /boot/vmlinuz-$KDVER ]
 	then
 		# We have found an initrd with no corresponding kernel
@@ -217,6 +218,9 @@
 %doc kexec-kdump-howto.txt
 
 %changelog
+* Mon Oct 01 2007 Neil Horman <nhorman at redhat.com> - 1.102pre-2
+- Fix triggerpostun script (bz 308151)
+
 * Mon Aug 30 2007 Neil Horman <nhorman at redhat.com> - 1.102pre-1
 - Bumping kexec version to latest horms tree (bz 257201)
 - Adding trigger to remove initrds when a kernel is removed




More information about the scm-commits mailing list