[Bug 828939] New: openSUSE:12.3:Update/systemd: Bug -- systemd ttyS0 getty listener ignores grub-specified baud rate
https://bugzilla.novell.com/show_bug.cgi?id=828939 https://bugzilla.novell.com/show_bug.cgi?id=828939#c0 Summary: openSUSE:12.3:Update/systemd: Bug -- systemd ttyS0 getty listener ignores grub-specified baud rate Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software AssignedTo: meissner@suse.com ReportedBy: ar16@imapmail.org QAContact: opensuse-communityscreening@forge.provo.novell.com Found By: Community User Blocker: --- If serial console output is enabled in Opensuse 12.3's grub: dmesg | grep "Command line:" [ 0.000000] Command line: root=/dev/sda3 console=tty0 console=ttyS0,57600n8 .. ^^^^^^^^^^^^^^^^^^^^^^ After boot the corresponding getty ttyS0 listener is automatically launched by Opensuse's systemd: ps ax | grep S0 1054 ttyS0 Ss+ 0:00 /sbin/agetty -s ttyS0 115200 38400 9600 vt102 systemctl status serial-getty@ttyS0.service serial-getty@ttyS0.service - Serial Getty on ttyS0 Loaded: loaded (/usr/lib/systemd/system/serial-getty@.service; static) Active: active (running) since Wed, 2013-07-10 13:07:58 PDT; 32min ago Docs: man:agetty(8) man:systemd-getty-generator(8) Main PID: 1054 (agetty) CGroup: name=systemd:/system/serial-getty@.service/ttyS0 └ 1054 /sbin/agetty -s ttyS0 115200 38400 9600 vt102 But ignores the BaudRate (57600) specific on the grub cmd-line. This spec originates from the listener's systemd unit file: grep ExecStart /usr/lib/systemd/system/serial-getty@.service ExecStart=-/sbin/agetty -s %I 115200,38400,9600 vt102 57600 is a common/allowed baud rate. The getty listener's baud rates should either be read from / overridden by grub cmd line. -- 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=828939
https://bugzilla.novell.com/show_bug.cgi?id=828939#c1
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=828939
https://bugzilla.novell.com/show_bug.cgi?id=828939#c2
--- Comment #2 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=828939
https://bugzilla.novell.com/show_bug.cgi?id=828939#c3
--- Comment #3 from A R
https://bugzilla.novell.com/show_bug.cgi?id=828939
https://bugzilla.novell.com/show_bug.cgi?id=828939#c4
--- Comment #4 from Frederic Crozat
"-s" is in the ExecStart= of Opensuse's default serial-getty unit.
Yes, and as I wrote in comment 2, it will make agetty to use the speed configured by the kernel (ie console=ttyS0,....) rather than the one from the command line parameters. I don't see a problem, here.. -- 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=828939
https://bugzilla.novell.com/show_bug.cgi?id=828939#c5
--- Comment #5 from A R
it will make agetty to use the speed configured by the kernel (ie console=ttyS0,....) rather than the one from the command line parameters.
That is NOT what is occurring. the 'problem' is i HAVE set console=ttyS0,57600n8 <========= !! 57600 !! on the kernel config line. agetty does NOT use that value. it IGNORES it. instead, it uses the next lower fallback from the systemd unit file's comman line -- 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=828939
https://bugzilla.novell.com/show_bug.cgi?id=828939#c6
--- Comment #6 from Frederic Crozat
agetty does NOT use that value. it IGNORES it. instead, it uses the next lower fallback from the systemd unit file's comman line
how do you know it ignores it ? if it does, it looks like a bug in agetty. -- 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=828939
https://bugzilla.novell.com/show_bug.cgi?id=828939#c7
--- Comment #7 from A R
https://bugzilla.novell.com/show_bug.cgi?id=828939
https://bugzilla.novell.com/show_bug.cgi?id=828939#c8
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=828939
https://bugzilla.novell.com/show_bug.cgi?id=828939#c9
--- Comment #9 from A R
https://bugzilla.novell.com/show_bug.cgi?id=828939
https://bugzilla.novell.com/show_bug.cgi?id=828939#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=828939
https://bugzilla.novell.com/show_bug.cgi?id=828939#c10
systemd maintainers
I've found this in systemd logs
systemd-journalctl | grep getty ... Jul 10 19:35:17 testsvr.loc agetty[3780]: checkname: Operation not permitted [...] Is it possible that there's an *initial* agetty launched that's listening @ 57600, using the kernel settings, that's getting killed, and subsequent launches of agetty by systemd are falling back to the ExecStart= line?
Hmmm ... the message is a bit strange as in util-linux-2.23.2/term-utils/agetty.c we have a function check_username() which reports errno = EPERM; log_err(_("checkname failed: %m")); .. IMHO the word `failed' is missed. Beside this the function does the following checks: static void check_username(const char* nm) { const char *p = nm; if (!nm) goto err; if (strlen(nm) > 42) goto err; while (isspace(*p)) p++; if (*p == '-') goto err; return; err: errno = EPERM; log_err(_("checkname failed: %m")); } that is it does *not* allow empty user names and user names longer than 42 characters as well as user names with leading `-' I'd like to ask how your ExecStart= line does look like. Be aware that a /etc/systemd/system/ entry will override the standard entry in /usr/lib/systemd/system/ -- 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=828939
https://bugzilla.novell.com/show_bug.cgi?id=828939#c11
A R
participants (1)
-
bugzilla_noreply@novell.com