From 0f7b27e3e3ed21061a177e743f5498803061d3db Mon Sep 17 00:00:00 2001 From: immarvin Date: Sun, 24 Aug 2014 07:54:02 -0700 Subject: [PATCH] add kdump support for redhat7 --- xCAT/postscripts/enablekdump | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/enablekdump b/xCAT/postscripts/enablekdump index 52b8d7c89..2ba1eebe9 100755 --- a/xCAT/postscripts/enablekdump +++ b/xCAT/postscripts/enablekdump @@ -213,7 +213,14 @@ EOF mv ${oldremount}.bak $oldremount fi else - if (pmatch $OSVER "fedora*") || (pmatch $OSVER "rhel6*") || (pmatch $OSVER "rhels6*") || [ -f /etc/fedora-release ] || [ -f /etc/redhat-release ];then + if (pmatch $OSVER "rhel7*") || (pmatch $OSVER "rhels7*");then + /bin/mount -o nolock $KDIP:$KDPATH $MOUNTPATH + [ -d $MOUNTPATH/var/crash ] || mkdir -p $MOUNTPATH/var/crash + echo "nfs $KDIP:$KDPATH" > /etc/kdump.conf + echo "default shell" >> /etc/kdump.conf + sed -i 's/KDUMP_COMMANDLINE_APPEND="/KDUMP_COMMANDLINE_APPEND="nonodestatus /' /etc/sysconfig/kdump + restartservice kdump + elif (pmatch $OSVER "fedora*") || (pmatch $OSVER "rhel6*") || (pmatch $OSVER "rhels6*") || [ -f /etc/fedora-release ] || [ -f /etc/redhat-release ];then /bin/mount -o nolock $KDIP:$KDPATH $MOUNTPATH echo "net $KDIP:$KDPATH" > /etc/kdump.conf echo "link_delay 180" >> /etc/kdump.conf