Re: preinit= (Was: Re: [PATCH] 5 year old bug in main.c (initrd). Can this please be fixed?)

From: Dave Cinege (dcinege@psychosis.com)
Date: Mon May 29 2000 - 18:35:36 EST


"Adam J. Richter" wrote:
>
> Dave Cinege wrote the following argument in favor of /linuxrc
> (and his proposed boot line parameter to give it an arbitrary name):
> > Standardized way to execute things prior to init
> > Will not fail for lack of /dev/console (Current init= will!)
>
> I sent Dave a longer response, but having thought about it
> a bit more, I now see a simpler solution:
>
> Whatever console mechanism the kernel uses up to the point
> it executes /linuxrc, it should continue use until it invokes /sbin/init.

If you looked over the code we are talkign about you'd see, do_linuxrc() opens
/dev/console as well. It just doesn't die if the open fails.
(And you don't see any /linxrc output)

The proper way (IMO) to fix this is to 'open' it strictly internally
using the major.minor.

> root file system, which would be a small step in the longer path toward
> being able to build a kernel without most of the filesystem code for
> really tiny embedded applications.

It still requires /dev/, and /etc/ to be present. (sysvinit touches /etc/
anyway)

-
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.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:22 EST