-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init: add support for s390x installation on LPAR #52
base: master
Are you sure you want to change the base?
Conversation
Not sure if I should include URL in the git commit, but I paste here for references: |
I understand introducing more arch-specific stuffs are not very friendly but I don't have much options. Any comment is welcomed ! |
This seems to be a wrong way to do it. Working on it. |
This commit is ready. cc @ncopa |
Still small aesthetic hiccup. Will update again in next commit in next few hours. |
Run and tested perfectly on KVM, z/VM and LPAR installations. Ready to go. |
To explain the logic:
I have observed that
On s390x, if a tty is available, the directory These 2 blocks wouldn't affect any other architectures I believe. |
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.