sulogin on serial
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Invalid
|
Undecided
|
Unassigned | ||
sysvinit (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: upstart
cat /proc/cmdline
... console=tty0 console=
cat /etc/event.d/ttyS0
# ttyS0 - getty
#
# This service maintains a getty on ttyS0 from the point the system is
# started until it is shut down again.
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on runlevel 0
stop on runlevel 1
stop on runlevel 6
respawn
exec /sbin/getty 115200 ttyS0
when taking the machine down to single-user , upstart starts a sulogin on the console, in this case ttyS0, but the sulogin-prompt is unusable because getty has changed tty-settings so icanon is of and that makes it inposible to login via sulogin.
the relevant diffrences is that getty setts:
-brkint -ignpar -icrnl -opost -onlcr -isig -icanon -echoctl -echoke
quick'n'dirty solution is to put a stty sane before the sulogin-row as attatched patch, but more correct solution is probably to patch sulogin
Changed in upstart: | |
status: | New → Invalid |
There is no ttyS0 shipped with Upstart. Also if sulogin needs a sane tty, *it* should do the stty necessary