From a8dcb097f02f7884ad073869951b76d6038d0cbf Mon Sep 17 00:00:00 2001 From: xq2005 Date: Mon, 26 Mar 2012 15:04:36 +0000 Subject: [PATCH] configure the kdump file in enablekdump postscript git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12004 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/enablekdump | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/enablekdump b/xCAT/postscripts/enablekdump index 5a42003b3..980dfb079 100755 --- a/xCAT/postscripts/enablekdump +++ b/xCAT/postscripts/enablekdump @@ -77,7 +77,9 @@ if [ ! -z "$DUMP" ]; then if [ "$KDPROTO" = "nfs" ]; then if (pmatch $OSVER "sles*") || (pmatch $OSVER "suse*") || [ -f /etc/SuSE-release ]; then - echo "$DUMP" > /etc/sysconfig/kdump; + KDPATH=${KDPATH//\//\\\/} + KDPATH="nfs:\/\/${KDIP}${KDPATH}" + sed -i "s/^KDUMP_TRANSFER=.*$/KDUMP_TRANSFER=\"${KDPATH}\"/" /etc/sysconfig/kdump /etc/init.d/boot.kdump restart else if (pmatch $OSVER "fedora*") || (pmatch $OSVER "rhel6*") || (pmatch $OSVER "rhels6*") || [ -f /etc/fedora-release ] || [ -f /etc/redhat-release ];then