Skip to content

init: add support for s390x installation on LPAR

Carlo Landmeter requested to merge github/fork/tuan-hoang1/lpar into master

Created by: tuan-hoang1

In QEMU/KVM, ttysclp0 (ttyS1) is automatically detected and used by default. In z/VM, ttyS0 is still used instead of ttysclp0/sclp_line0, however. In LPAR, ttyS0 is mapped to sclp_line0 as expected.

This patch detects if we are running in LPAR mode and change ttyS0 to sclp_line0 accordingly. /proc/sysinfo is s390x specific.

Edited by Natanael Copa

Merge request reports