fix bug for kdump setup on rhels6.1 stateless node

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12028 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-03-28 07:12:18 +00:00
parent 578afdf5d0
commit 512795a33e

View File

@ -79,7 +79,13 @@ if [ ! -z "$DUMP" ]; then
# workaround for RHEL6
# the $KDIP:$KDPATH directory will be used to generate the initrd for kdump service
/bin/mount $KDIP:$KDPATH /var/tmp
MOUNTPATH=""
if (pmatch $OSVER "*6\.." ); then
MOUNTPATH="/tmp"
else
MOUNTPATH="/var/tmp"
fi
/bin/mount $KDIP:$KDPATH $MOUNTPATH
if [ "$KDPROTO" = "nfs" ]; then
if (pmatch $OSVER "sles*") || (pmatch $OSVER "suse*") || [ -f /etc/SuSE-release ]; then
@ -95,7 +101,7 @@ if [ ! -z "$DUMP" ]; then
fi
fi
/bin/umount /var/tmp
/bin/umount $MOUNTPATH
else
/bin/echo "The kdump server is not configured"
fi