sulogin on serial

Bug #415805 reported by glance
8
This bug affects 1 person
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=ttyS0,115200n8

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

Tags: patch
Revision history for this message
glance (glance-acc) wrote :
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

There is no ttyS0 shipped with Upstart. Also if sulogin needs a sane tty, *it* should do the stty necessary

Changed in upstart (Ubuntu):
status: New → Invalid
Revision history for this message
glance (glance-acc) wrote :

Reassigning this bug to sysvutils them.

affects: upstart (Ubuntu) → sysvinit (Ubuntu)
Changed in sysvinit (Ubuntu):
status: Invalid → New
Changed in upstart:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.