Re: New /dev/console and /dev/tty0

H. Peter Anvin (
29 Apr 1997 16:35:54 GMT

Followup to: <>
By author: Geert Uytterhoeven <>
In newsgroup:
> >
> >The solution I made was that the kernel would set an environment variable
> >called CONSOLE to the (guessed, ofcourse) name of the console device.
> >Init looks at this environment variable to decide which console to
> >open for boot. The first script that is spawned by init can link the
> >real console device to /dev/console after remounting the root fs rw.
> >
> >This actually works very nice, better then I thought and looking back
> >Linus was right as usual :).
> Yep, $CONSOLE worked fine.

That being said, I think there is space for a /dev/console device
(making it a "magic" pty or whatever): linking /dev/console to a
device works great for only one output device, but with VT+serial
tty's, for example, this no longer does the trick.


Always looking for a few good BOsFH.  **  Linux - the OS of global cooperation
        I am Bahá'í -- ask me about it or see