From d60d8254be9193fe48dbbcc8526c86081231ddb6 Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Tue, 19 Jun 2007 11:05:47 +0000 Subject: [PATCH] Resolves: bz222911 --- kexec-tools.spec | 5 ++++- mkdumprd | 9 +++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/kexec-tools.spec b/kexec-tools.spec index 31488b2..555ce0f 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -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 @@ rm -f %{_datadir}/firstboot/modules/firstboot_kdump.py %doc kexec-kdump-howto.txt %changelog +* Tue Jun 19 2007 Neil Horman - 1.101-71%{dist} +- Fixed conflict in mkdumprd in use of /mnt (bz 222911) + * Mon Jun 18 2007 Neil Horman - 1.101-70%{dist} - Fixed kdump.init to properly read cmdline (bz 244649) diff --git a/mkdumprd b/mkdumprd index 694ab30..18566f9 100644 --- a/mkdumprd +++ b/mkdumprd @@ -1635,11 +1635,12 @@ if [ -n "$KDUMP_CONFIG_FILE" ]; then *) #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