Messages in this thread | | | Date | Wed, 19 Aug 1998 14:27:10 +1000 | From | Richard Gooch <> | Subject | Re: Flexible Console open (really little patch) |
| |
Clifford Wolf writes: > > On 17 Aug 1998, H. Peter Anvin wrote: > > > Followup to: <Pine.LNX.3.96.980816194907.12849B-100000@babylon.clifford.at> > > By author: Clifford Wolf <clifford@clifford.at> > > In newsgroup: linux.dev.kernel > > > > > > I have a little patch here to make the opening of the initial console more > > > flexible: It tries first to open /etc/console and after that /dev/console. > > > The reason for this oerder is that one does not have controll of > > > /dev/console if useing Richards devfs driver. Since /etc/console does not > > > exist on most systems it will still open /dev/console on default. But if > > > you use the devfs filesystem as /dev/ and you haven't enabled the "mount > > > at boot time" option there will be no /dev/console and one can use > > > /etc/console instead. On the other hand if you are using the "mount at > > > boot time" option and you are not happy with the normal /dev/console you > > > can override it useing /etc/console. > > > > > > > This is a broken patch for a broken problem. Please, don't put this > > kind of crud in the kernel. > > > > -hpa > > I don't think so. It solves a problem at a very easy way and does not > hurt anyone. We support a few paths for the init program - why don't > be flexible with the path of /dev/console? (Specialy if there is a good > reason for: it's possible that /dev will be mounted later from a boot > script.)
As Matti has pointed out, you can have /dev/console sitting on your root device for use before devfs is mounted.
For your other concern: if you want to see what's in your real /dev then don't mount devfs there at all. Mount it onto /devfs or wherever.
/etc/console is a real hack. If you really want this kind of hack, do this in your boot scripts after mounting devfs: # rm /dev/console # ln -s /etc/console /dev/console
And as Miquel has pointed out, sysvinit doesn't even keep /dev/console open.
Regards,
Richard....
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html
| |