Resolves: bz222911

This commit is contained in:
Neil Horman 2007-06-19 11:05:47 +00:00
parent 4fe704538a
commit d60d8254be
2 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,6 @@
Name: kexec-tools Name: kexec-tools
Version: 1.101 Version: 1.101
Release: 70%{?dist} Release: 71%{?dist}
License: GPL License: GPL
Group: Applications/System Group: Applications/System
Summary: The kexec/kdump userspace component. Summary: The kexec/kdump userspace component.
@ -251,6 +251,9 @@ rm -f %{_datadir}/firstboot/modules/firstboot_kdump.py
%doc kexec-kdump-howto.txt %doc kexec-kdump-howto.txt
%changelog %changelog
* Tue Jun 19 2007 Neil Horman <nhorman@redhat.com> - 1.101-71%{dist}
- Fixed conflict in mkdumprd in use of /mnt (bz 222911)
* Mon Jun 18 2007 Neil Horman <nhorman@redhat.com> - 1.101-70%{dist} * Mon Jun 18 2007 Neil Horman <nhorman@redhat.com> - 1.101-70%{dist}
- Fixed kdump.init to properly read cmdline (bz 244649) - Fixed kdump.init to properly read cmdline (bz 244649)

View File

@ -1635,11 +1635,12 @@ if [ -n "$KDUMP_CONFIG_FILE" ]; then
*) *)
#test filesystem and directory creation #test filesystem and directory creation
kdump_chk "test -f /sbin/fsck.$type" "Unsupported type $type" kdump_chk "test -f /sbin/fsck.$type" "Unsupported type $type"
kdump_chk "mount -t $type $location /mnt" "Bad mount point $location" tmnt=`mktemp -dq`
mkdir -p /mnt/$SAVE_PATH kdump_chk "mount -t $type $location $tmnt" "Bad mount point $location"
tdir=`mktemp -dqp /mnt/$SAVE_PATH` mkdir -p $tmnt/$SAVE_PATH
tdir=`mktemp -dqp $tmnt/$SAVE_PATH`
available_size=$(df $tdir | tail -1 | tr -s ' ' ':' | cut -d: -f4) 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 if [ $rc != "0" ]; then
echo "Cannot create directory in $location: $SAVE_PATH" echo "Cannot create directory in $location: $SAVE_PATH"
exit 1 exit 1