[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#403031: finish-install: serial console detection is not matching what is done in rootskel/console-detect



Package: finish-install
Version: 2.6
Severity: normal


Well, while working on the efika support, i found out that more problematic
serial console setups break finish-install. The efika has ttyPSC0 as console.

This is in part due to the fact that rootskel/console-detect uses :

                  /dev/console|/dev/tts/*|/dev/tty[A-Z]*|/dev/hvc*|/dev/hvsi*)
		                          TERM_TYPE=serial

Which is a lot more complete than the :

	case "$console" in
		ttyS*|hvc*|hvsi*)

used in finish-install/S90console.

Furthermore, this forces us to modify the code in two places for each new kind
of serial console, and with the crazy scheme of the linux upstream folk to
call each different serial console with its own name, this may happen a lot in
the future.

I thus suggest that the finish-install/S90console be changed to :

	case "$TERM_TYPE" in
		serial )

Which, unless i miss something, would catch all those consoles detected by the
rootskel/console-detect code, and thanks to the remaniement of my preceding
suggestion by frans/colin, will allow to do the right thing.

I think that it would be useful to have some override of the TERM_TYPE
detection, in case of some new future serial console kind not catched by the
above rootskel/console-detect code, i don't know if this is already possible,
but this would be a separate bug report maybe.

Friendly,

Sven Luther

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-powerpc
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)



Reply to: