From d9e87410d416ca0ce242e2863503259184641659 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Wed, 26 Nov 2014 02:29:04 -0500 Subject: [PATCH] Fix bug 4381 :sles12 rcons could not work on P8LE. --- xCAT-server/lib/xcat/plugins/sles.pm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index 1cf90e08d..66adcc982 100755 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -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";