2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Add more comments for bug#4502 fixing. Use /dev/hvc? instead of /dev/ttyS? for ppc64, ppc64le, ppc64el.

This commit is contained in:
GONG Jie 2015-04-16 16:52:41 +08:00
parent 9d90313aaf
commit d9cc96bc4f

View File

@ -796,6 +796,10 @@ sub mknetboot
next;
}
if ( $arch =~ /ppc64/i ) {
# For IBM Power machines, either ppc64 or ppc64le (ppc64el),
# both the physical serial port or virtual serial port appeared
# in PowerVM LPAR or PowerKVM guest use device /dev/hvc0 or
# /dev/hvc1 instead of /dev/ttyS0 or /dev/ttyS1
$kcmdline .= " console=tty0 console=hvc" . $sent->{serialport} . "," . $sent->{serialspeed};
} else {
$kcmdline .= " console=tty0 console=ttyS" . $sent->{serialport} . "," . $sent->{serialspeed};