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

From: Adam J. Richter (adam@yggdrasil.com)
Date: Mon May 29 2000 - 18:05:56 EST


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.
Then, /sbin/init should mount /dev first, and then execute something like:

                fd = open("/dev/vc/0", O_RDWR);
                ioctl(fd, TIOCCONS, &fd);
                close(fd);

        This would eliminate one more depency on the contents of the
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.

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."

-
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