From 89c9bed215d4434f0ea55563dbb896422e7accbc Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 23 May 2012 03:53:34 +0000 Subject: [PATCH] copy from 2.8 for kdump on rhel6.2 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12885 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index a63c4d172..e5b77b4e8 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -685,12 +685,16 @@ sub mknetboot # if kdump service is enbaled, add "crashkernel=" and "kdtarget=" if ($dump) { - if ($arch eq "ppc64") { # for ppc64, the crashkernel paramter should be "128M@32M", otherwise, some kernel crashes will be met - if ( $crashkernelsize ) { - $kcmdline .= " crashkernel=$crashkernelsize\@32M dump=$dump "; - } else { - $kcmdline .= " crashkernel=256M\@32M dump=$dump "; - } + if ($crashkernelsize){ + $kcmdline .= " crashkernel=$crashkernelsize dump=$dump "; + } + else{ + if ($arch eq "ppc64"){ + $kcmdline .= " crashkernel=256M\@64M dump=$dump "; + } + if ($arch =~ /86/){ + $kcmdline .= " crashkernel=128M dump=$dump "; + } } }