rpms/kexec-tools/devel kexec-tools.spec, 1.85, 1.86 mkdumprd, 1.13, 1.14

Neil Horman (nhorman) fedora-extras-commits at redhat.com
Tue Jun 19 11:06:25 UTC 2007


Author: nhorman

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

Modified Files:
	kexec-tools.spec mkdumprd 
Log Message:
Resolves: bz222911


Index: kexec-tools.spec
===================================================================
RCS file: /cvs/extras/rpms/kexec-tools/devel/kexec-tools.spec,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- kexec-tools.spec	18 Jun 2007 19:04:08 -0000	1.85
+++ kexec-tools.spec	19 Jun 2007 11:05:47 -0000	1.86
@@ -1,6 +1,6 @@
 Name: kexec-tools
 Version: 1.101
-Release: 70%{?dist}
+Release: 71%{?dist}
 License: GPL
 Group: Applications/System
 Summary: The kexec/kdump userspace component.
@@ -251,6 +251,9 @@
 %doc kexec-kdump-howto.txt
 
 %changelog
+* Tue Jun 19 2007 Neil Horman <nhorman at redhat.com> - 1.101-71%{dist}
+- Fixed conflict in mkdumprd in use of /mnt (bz 222911)
+
 * Mon Jun 18 2007 Neil Horman <nhorman at redhat.com> - 1.101-70%{dist}
 - Fixed kdump.init to properly read cmdline (bz 244649)
 


Index: mkdumprd
===================================================================
RCS file: /cvs/extras/rpms/kexec-tools/devel/mkdumprd,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- mkdumprd	15 Mar 2007 17:36:03 -0000	1.13
+++ mkdumprd	19 Jun 2007 11:05:47 -0000	1.14
@@ -1635,11 +1635,12 @@
                 *)
                     #test filesystem and directory creation
                     kdump_chk "test -f /sbin/fsck.$type" "Unsupported type $type"
-                    kdump_chk "mount -t $type $location /mnt" "Bad mount point $location"
-                    mkdir -p /mnt/$SAVE_PATH
-                    tdir=`mktemp -dqp /mnt/$SAVE_PATH`
+                    tmnt=`mktemp -dq`
+                    kdump_chk "mount -t $type $location $tmnt" "Bad mount point $location"
+                    mkdir -p $tmnt/$SAVE_PATH
+                    tdir=`mktemp -dqp $tmnt/$SAVE_PATH`
                     available_size=$(df $tdir | tail -1 | tr -s ' ' ':' | cut -d: -f4)
-                    rc=$? && rm -rf $tdir && umount /mnt
+                    rc=$? && rm -rf $tdir && umount $tmnt
                     if [ $rc != "0" ]; then 
                         echo "Cannot create directory in $location: $SAVE_PATH"
                         exit 1




More information about the fedora-extras-commits mailing list