[Bug 737550] New: console ttyS0 is not started on boot
https://bugzilla.novell.com/show_bug.cgi?id=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c0 Summary: console ttyS0 is not started on boot Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: devel@fresse.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0a1) Gecko/20111118 Firefox/11.0a1 In /etc/inittab there is: S0:12345:respawn:/sbin/agetty -L 115200,9600 ttyS0 linux and the kernel is booted with console=ttyS0 Yet only early printk's appear on that console and agetty is never spawned. Reproducible: Always Steps to Reproduce: 1. put S0:12345:respawen:/sbin/agetty -L <line> ttyS0 linux into /etc/inittab 2. boot kernel with console=ttyS0 Actual Results: No agetty is spawned on ttyS0 Expected Results: Login prompt should appear on ttyS0 -- 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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c1 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fcrozat@suse.com AssignedTo|bnc-team-screening@forge.pr |fcrozat@suse.com |ovo.novell.com | --- Comment #1 from Frederic Crozat <fcrozat@suse.com> 2011-12-19 11:46:58 UTC --- /etc/inittab is not used by systemd. But it should automatically start a tty on ttyS0 please boot with systemd.log_level=debug systemd.log_target=kmsg and when logged in, attach dmesg output to this bug report -- 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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c2 --- Comment #2 from Sebastian Freundt <devel@fresse.org> 2011-12-19 12:41:03 UTC --- Created an attachment (id=468057) --> (http://bugzilla.novell.com/attachment.cgi?id=468057) systemd debugging output -- 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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #468057|application/octet-stream |text/plain mime type| | -- 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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c3 --- Comment #3 from Frederic Crozat <fcrozat@suse.com> 2011-12-19 13:03:51 UTC --- could you try to inverse console order ? console=tty0 console=ttyS0 according to http://www.mjmwired.net/kernel/Documentation/serial-console.txt the last one in the list will be the /dev/console owner and this is what is used by systemd to detect if there is a serial console running. -- 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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c4 --- Comment #4 from Sebastian Freundt <devel@fresse.org> 2011-12-19 13:26:23 UTC --- Yes, that's exactly what I want. tty0 is the master console, but I want an agetty on ttyS0 where I can log in. Unfortunately, the documentation does not apply anymore as, as you've told me, systemd does not respect /etc/inittab. -- 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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c5 --- Comment #5 from Sebastian Freundt <devel@fresse.org> 2011-12-19 13:27:06 UTC --- If I invert the console order, then I do have a login on ttyS0 but no login on tty0. -- 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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c6 --- Comment #6 from Sebastian Freundt <devel@fresse.org> 2011-12-19 13:32:25 UTC --- Sorry my bad, if I invert the console order, it makes no difference, the agetty is spawned only on tty0, *NOT* like I said on ttyS0. -- 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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c7 --- Comment #7 from Sebastian Freundt <devel@fresse.org> 2011-12-19 13:36:09 UTC --- My bad again, there seems to be a race condition, out of 10 times, I'd say it's 4 times correct behaviour, i.e. an agetty on both ttyS0 and tty0, when rebooting however the console on ttyS0 is switched off 6 times out of 10. -- 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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c8 --- Comment #8 from Sebastian Freundt <devel@fresse.org> 2011-12-19 13:48:43 UTC --- Nope, it's definitely broken. The thing that SEEMS to work is to specify console=ttyS0 ONLY. The agetty parameters are wrong then, but at least I can log in. -- 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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c9 --- Comment #9 from Frederic Crozat <fcrozat@suse.com> 2011-12-19 13:56:47 UTC --- just tested here on a VM, with console=tty0 console=ttyS0 and I get a tty started on both tty1 and ttyS0 you can also "force" a tty to be started on a specific serial, by using : ln -s /lib/systemd/systemd/serial-getty@.service /etc/systemd/system/getty.target.wants/serial-getty@ttyS0.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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c10 --- Comment #10 from Sebastian Freundt <devel@fresse.org> 2011-12-19 14:00:25 UTC --- Yes I was just about to try that. Like I said, for me only console=ttyS0 works, as soon as console=tty0 is mentioned, there is no getty started. However since I need special getty settings, I guess I will just go with your suggestion and create my own 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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c11 Sebastian Freundt <devel@fresse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from Sebastian Freundt <devel@fresse.org> 2011-12-19 14:02:49 UTC --- Fix is to either just specify console=ttyS0 on the boot line, or to edit /lib/systemd/system/getty@.service to one's liking. -- 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=737550 https://bugzilla.novell.com/show_bug.cgi?id=737550#c12 --- Comment #12 from Frederic Crozat <fcrozat@suse.com> 2011-12-19 14:03:50 UTC --- I've added some documentation for this on the wiki (pending review) -- 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.
participants (1)
-
bugzilla_noreply@novell.com