From 512795a33ea9b41a381f4324b98cdd62df3a0e5c Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 28 Mar 2012 07:12:18 +0000 Subject: [PATCH] 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 --- xCAT/postscripts/enablekdump | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/enablekdump b/xCAT/postscripts/enablekdump index e506c04db..b6f58d12c 100755 --- a/xCAT/postscripts/enablekdump +++ b/xCAT/postscripts/enablekdump @@ -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