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

Bug#287932: debian-installer: serial console detection will fail if two console= kernel args are provided.



Package: debian-installer
Severity: important


It is customary to use kernel command lines like :

  console=ttyS0,9600 console=tty0

to get an echo of the kernel messages or whatever on the serial console. This
seems to be even automatically activated on powerpc prep kernels.

The current way for detecting a serial console is to grep for "console=ttyS"
on the /proc/cmdline, which naturally fails in this setup, and resulted on an
impossibility to chose a keyboard on my prep motorola powerstack install.
fjp tells me that this mechanism is used in various (at least 4) places in the
whole of debian installer, which is why i fill a generic bug, and not a bug
against kbd-chooser.

The correct behavior is to check for multiple console= options, and to take
only the last one for being the active console. Thus the above would not be a
serial console, while :

  console=tty0 console=ttyS0,9600

Would be a serial console with echo on the local monitor.

I am not sure if an easy grepping can solve this issue, so i let this to a
shell export.

Friendly,

Sven Luther

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.4.27-powerpc
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)




Reply to: