[Bug 671674] New: systemd doesn't start getty on ttyS0
https://bugzilla.novell.com/show_bug.cgi?id=671674 https://bugzilla.novell.com/show_bug.cgi?id=671674#c0 Summary: systemd doesn't start getty on ttyS0 Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jslaby@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- With sysvinit, in inittab I have: S0:12345:respawn:/sbin/agetty -L 115200 ttyS0 vt102 With systemd the logon prompt doesn't appear unless console=ttyS0 is passed as a kernel parameter. How can I specify to start getty there always? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=671674
https://bugzilla.novell.com/show_bug.cgi?id=671674#c1
--- Comment #1 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=671674
https://bugzilla.novell.com/show_bug.cgi?id=671674#c2
--- Comment #2 from Jiri Slaby
Does this make it work?
ln -sf /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyS0.service
For non-console=ttyS0, yes, the login prompt appears. For console=ttyS0, there are 2 login prompts (I just pressed enter few times after login): Welcome to openSUSE 11.4 "Celadon" RC 1 - Kernel 2.6.37-22-default (ttyS0). linux-b984 login: root Password: Last login: Mon Feb 14 12:45:28 CET 2011 on tty1 Have a lot of fun... linux-b984:~ # linux-b984:~ # linux-b984:~ # linux-b984:~ # Welcome to openSUSE 11.4 "Celadon" RC 1 - Kernel 2.6.37-22-default (ttyS0). linux-b984 login: linux-b984:~ # Welcome to openSUSE 11.4 "Celadon" RC 1 - Kernel 2.6.37-22-default (ttyS0). linux-b984 login: -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=671674
https://bugzilla.novell.com/show_bug.cgi?id=671674#c3
--- Comment #3 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=671674
https://bugzilla.novell.com/show_bug.cgi?id=671674#c4
--- Comment #4 from Jiri Slaby
Ah, right, sorry. Care to try to link the serial-getty@ service instead of getty@? That should do the trick.
No hope, still the same, two login prompts with: lrwxrwxrwx 1 root root 41 Feb 14 14:30 /etc/systemd/system/getty.target.wants/getty@ttyS0.service -> /lib/systemd/system/serial-getty@.service -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=671674
https://bugzilla.novell.com/show_bug.cgi?id=671674#c5
--- Comment #5 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=671674
https://bugzilla.novell.com/show_bug.cgi?id=671674#c6
--- Comment #6 from Jiri Slaby
The link name should be serial-getty@ too.
Yes, this one works: lrwxrwxrwx 1 root root 41 Feb 14 15:11 /etc/systemd/system/getty.target.wants/serial-getty@ttyS0.service -> /lib/systemd/system/serial-getty@.service -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=671674
https://bugzilla.novell.com/show_bug.cgi?id=671674#c7
--- Comment #7 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=671674
https://bugzilla.novell.com/show_bug.cgi?id=671674#c8
--- Comment #8 from Jiri Slaby
So we can close this bug?
I think so.
There is currently no higher-level interface in systemctl, to create these links for multi-instance units (the ones with @), only for the simple ones, so this is currently the way to enable such services.
Ok, I have no problem with that. I was just confused by that it works when console=ttyS0 is used. Does it mean that systemd runs some kind of getty (agetty is not in the process list) for the kernel console? It also has to run with different ENV, because the shell prompt was colored by default... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=671674
https://bugzilla.novell.com/show_bug.cgi?id=671674#c
wei wang
https://bugzilla.novell.com/show_bug.cgi?id=671674
https://bugzilla.novell.com/show_bug.cgi?id=671674#c9
--- Comment #9 from Kay Sievers
I was just confused by that it works when console=ttyS0 is used. Does it mean that systemd runs some kind of getty (agetty is not in the process list) for the kernel console?
It starts agetty automatically if the kernel commandline has the console instruction (or /sys/class/tty/console/active, which contains the same list).
It also has to run with different ENV, because the shell prompt was colored by default...
I think it does different TERM= settings. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=671674
https://bugzilla.novell.com/show_bug.cgi?id=671674#c10
Kay Sievers
participants (1)
-
bugzilla_noreply@novell.com