serial console and log-in

Natanael Copa natanael.copa at gmail.com
Fri Feb 16 22:45:37 UTC 2007


Hi,

>From the serial console kernel documentation:

 If no console device is specified, the first device found capable of
 acting as a system console will be used. At this time, the system
 first looks for a VGA card and then for a serial port. So if you don't
 have a VGA card in your system the first serial port will automatically
 become the console.

Is there some way to autodetect if the console is a serial console, and
if it is, activate a line like this in inittab:

ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100

And if /dev/console is not a serial console, it will not activate any
getty on the serial console.

The current problem is, that even if console goes to serial port so I
can see the kernel messages and bootscript output, busybox init will
never give a login from inittab unless the previous line is there.

But I'd prefer not to turn it on by default, in case somebody happen to
have something sensitive attatched to the serial port when running my
distro as rescue cd for example.

Natanael Copa




More information about the busybox mailing list