From cafb5bef1054b7b4b41278bad353d0841e09e4ee Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Thu, 28 Mar 2019 11:57:44 +0800 Subject: [PATCH] Put the dracut_args --omit back into /etc/kdump.conf --- xCAT/postscripts/enablekdump | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xCAT/postscripts/enablekdump b/xCAT/postscripts/enablekdump index 3a61bcfc0..6849ae13e 100755 --- a/xCAT/postscripts/enablekdump +++ b/xCAT/postscripts/enablekdump @@ -246,10 +246,8 @@ EOF echo "nfs $KDIP:$KDPATH" > /etc/kdump.conf echo "default shell" >> /etc/kdump.conf - if (pmatch $OSVER "rhel7*") || (pmatch $OSVER "rhels7*");then - #strip "xcat" out of the initramfs for kdump - echo "dracut_args --omit \"xcat\"" >> /etc/kdump.conf - fi + #strip "xcat" out of the initramfs for kdump + echo "dracut_args --omit \"xcat\"" >> /etc/kdump.conf #strip the unnecessary kernel options from /proc/cmdline #the modified "cmdline" will be used as the kernel options #for kdump initramfs; otherwise, the "service kdump restart" will fail