BTS

Issue881

Title serial console=ttyS2 => console on ttyS2, but no getty
Priority wish Status resolved
Superseder Nosy List mika, zugschlus
Assigned To mika Topics

Created on 2010-07-18.21:00:11 by zugschlus, last changed 2010-11-04.13:32:50 by mika.

Files
File name Uploaded Type Edit Remove
0001-make-config_console-handle-multiple-console-settings.patch zugschlus, 2010-07-21.20:42:37 text/x-patch
0001-modify-inittab-for-new-serial-handling.patch zugschlus, 2010-07-21.20:42:56 text/x-patch
Messages
msg3423 (view) Author: mika Date: 2010-11-04.13:32:50
No problems known or showed up and there were further bugfixes, closing this 
issue therefore.

regards,
-mika-
msg3280 (view) Author: mika Date: 2010-07-21.22:08:27
Fixed in grml-autoconfig (0.9.12) and grml-etc (1.2.2) - both available in 
testing.

Setting status to testing until we tested all possible use-cases.

thanks && regards,
-mika-
msg3279 (view) Author: zugschlus Date: 2010-07-21.20:42:56
patch against grml-etc
msg3278 (view) Author: zugschlus Date: 2010-07-21.20:42:37
patch against grml-autoconfig
msg3271 (view) Author: zugschlus Date: 2010-07-19.07:57:52
I would suggest patching the original inittab and autoconfig.functions to only
enable the serial console on the device that was actually given on the command
line. That way, there would only be a getty on ttyS0 if "serial" were given on
the grml command line, and on ttySx if "serial console=ttySx,..." were given.

Actually, the getty on the "other" serial port may cause unintended behavior

The (only) line in inittab mentioning the serial console would be:

#grmlserial#T0:23:respawn:/sbin/getty -L #grmlserialdevice# -l /usr/bin/zsh-
login 115200,57600,38400,19200,9600,4800,2400,1200 vt100

and the autoconfig function would do something along the lines of

sed -i '/^#grmlserial#/{s/#grmlserialdevice#/$TTYDEVICE/;s/^#grmlserial#//;}'
/etc/inittab

Please indicate if such a patch would be acceptable to you.

Greetings
Marc
msg3270 (view) Author: zugschlus Date: 2010-07-18.21:00:11
Hi,

the IPMI card that I currently fight with offers a redirected virtual serial
port as ttyS2. The natural serial console=ttyS2,115200n8 does give me the
console on ttyS2, but doesn't start a getty on that device, which leaves me with
a useless console.

Please consider generating the appropriate getty config that fits the
console=ttys number.

Greetings
Marc
History
Date User Action Args
2010-11-04 13:32:50mikasetstatus: testing -> resolved
nosy: mika, zugschlus
messages: + msg3423
2010-07-21 22:08:28mikasetstatus: fixed-in-git -> testing
nosy: mika, zugschlus
messages: + msg3280
2010-07-21 21:40:43mikasetstatus: chatting -> fixed-in-git
assignedto: mika
nosy: + mika
2010-07-21 20:42:56zugschlussetfiles: + 0001-modify-inittab-for-new-serial-handling.patch
messages: + msg3279
2010-07-21 20:42:38zugschlussetfiles: + 0001-make-config_console-handle-multiple-console-settings.patch
messages: + msg3278
2010-07-19 07:57:54zugschlussetstatus: unread -> chatting
messages: + msg3271
2010-07-18 21:00:11zugschluscreate