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
This commit is contained in:
parent
e01f51e8d5
commit
89c9bed215
@ -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 ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user