Bug 774379

Summary: no serial login possible after installation
Product: [openSUSE] openSUSE 12.2 Reporter: Olaf Hering <ohering>
Component: InstallationAssignee: systemd maintainers <systemd-maintainers>
Status: RESOLVED NORESPONSE QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P5 - None CC: werner
Version: RC 2   
Target Milestone: ---   
Hardware: x86-64   
OS: Linux   
Whiteboard:
Found By: Outsourced Testing Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: bug774379.tar.bz2

Description Olaf Hering 2012-08-03 13:18:14 UTC
I did a fresh installation of 12.2-rc2 on stein-schneider.arch.suse.de
cmdline used for install:

quiet sysrq=yes panic=9 start_shell ssh=1 sshpassword=root nosshkey vnc=1 vncpassword=password linemode=1 start_shell console=ttyS0,57600 install=http://bax.arch.suse.de/abuild_disk/install/12.2/


After Installation there was no serial login offered. If I had not used vnc+ssh a login would have been impossible!
(vnc login was also not enabled, but thats another bug).
Comment 1 Olaf Hering 2012-08-03 13:27:03 UTC
Created attachment 501041 [details]
bug774379.tar.bz2

cmdline used to boot into second stage:

BOOT_IMAGE=/boot/vmlinuz-3.4.6-1.1-desktop root=UUID=747071b8-74b0-4d6d-ac34-19f5e3daf92c quiet sysrq=yes panic=9 resume=/dev/disk/by-label/SWAP splash=silent quiet showopts console=ttyS0,57600
Comment 2 Olaf Hering 2012-08-03 13:33:38 UTC
The bug is not that no getty is running on ttyS0. The login prompt was overwritten by the boot messages, so I missed it.

But login is actually not possible because as soon as I enter the username, hit return and try to enter the password the login prompt appears again. This happens with root and NIS user.

One bug is that /etc/securetty has 'console' in it, but lacks 'ttyS0'. 
I think it should also get 'hvc0' for login with kernel-xen.

ps fax shows just one getty running, so its appearently not two processes trying to access ttyS0.
Comment 3 Olaf Hering 2012-08-03 13:51:27 UTC
updating summary
Comment 4 Andreas Jaeger 2012-08-03 14:27:09 UTC
Might be a duplicate of bnc#774126
Comment 5 Frederic Crozat 2012-08-10 08:39:49 UTC
I just tried to do a serial install (using DVD image in virt-manager, with only console=ttyS0), choosing a "minimal" install and I didn't got any issue.

Do you use a special install pattern ?
Comment 6 Dr. Werner Fink 2013-12-08 21:53:24 UTC
Is this bug still valid?  This because I'm able to login as root via serial
console after adding /dev/ttyS0 to /etc/securetty. I'm running also grub on
serial console and using console=ttyS0,1152000 console=tty0 on the kernel
command line.
Comment 7 Olaf Hering 2013-12-09 13:54:46 UTC
I have to verify it with one of the SLE12 builds once I'm get to it. But I'm confident that its not fixed because systemd does not handle parallelism well.
Comment 8 Dr. Werner Fink 2013-12-09 14:21:50 UTC
(In reply to comment #7)

What about you're talking about?  Parallel starting getty on several serial lines?
Comment 9 systemd maintainers 2014-01-08 13:51:58 UTC
Sorry no responce within a month.  Btw: with a clean openSUSE 13.1 I'm using a serial line. That is I'm running the 13.1 in a virtual box with

   console=ttyS0,115200 console=tty0

in the kernel's command line and the serial console works.  And even for root
after adding ttyS0 to /etc/securetty.