Bug#754274: live-config-sysvinit: inittab rewrite fails for ttyS0
Ben,
On 2014-07-09 13:58, Ben Armstrong wrote:
> Your patch breaks the normal use case (non-serial autologin)
Could you elaborate on this? I've tried this on my setup, and with the
patch applied, both normal tty and serial port work (with autologin).
> You should simply customize live-config as explained
> in the manual to implement whatever non-standard behaviors you want, if
> the standard behaviors don't suit your needs.
The standard behaviour almost suits my need. In fact, it did the changes
to `inittab` that were required to such an extend, that I considered the
missing bits a bug:
The standard behaviour turns these lines:
> 1:2345:respawn:/sbin/getty 38400 tty1
> T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
into these lines:
> 1:2345:respawn:/bin/login -f user </dev/tty1 >/dev/tty1 2>&1
> T0:23:respawn:/bin/login -f user </dev/tty >/dev/tty 2>&1
I think that the current situation is never the intended behaviour:
either the script should leave the T0-line untouched, or it should
rewrite it properly and not change `ttyS0` into `tty`.
Niels
Reply to: