Fix bug 4381 :sles12 rcons could not work on P8LE.

This commit is contained in:
zhaoertao 2014-11-26 02:29:04 -05:00
parent 288ffa7b68
commit d9e87410d4

View File

@ -618,8 +618,13 @@ sub mknetboot
);
next;
}
$kcmdline .=
if ($arch =~ /ppc64le/i) {
$kcmdline .=
"console=tty0 console=hvc" . $sent->{serialport} . "," . $sent->{serialspeed};
} else {
$kcmdline .=
"console=tty0 console=ttyS" . $sent->{serialport} . "," . $sent->{serialspeed};
}
if ($sent->{serialflow} =~ /(hard|tcs|ctsrts)/)
{
$kcmdline .= "n8r";
@ -1222,10 +1227,18 @@ sub mkinstall
);
next;
}
$kcmdline .=
if ($arch =~ /ppc64le/i) {
$kcmdline .=
" console=tty0 console=hvc"
. $sent->{serialport} . ","
. $sent->{serialspeed};
} else {
$kcmdline .=
" console=tty0 console=ttyS"
. $sent->{serialport} . ","
. $sent->{serialspeed};
}
if ($sent and ($sent->{serialflow} =~ /(ctsrts|cts|hard)/))
{
$kcmdline .= "n8r";