support kdump on system x machine

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12791 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-05-18 08:17:05 +00:00
parent 2a89911f9e
commit 65e4c4312e

View File

@ -685,11 +685,15 @@ 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 ";
}
}
}