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

From: Dave Cinege (
Date: Tue May 30 2000 - 13:23:42 EST

David Woodhouse wrote:
> said:
> > Will not fail for lack of /dev/console (Current init= will!)
> Actually, I'd prefer it to forcibly grab a handle on MKDEV(5,1) in that
> case rather than failing to boot.

Know how to do that code wise? I've wanted this since 2.0...
Here's what it does:

        open("/dev/console", O_RDWR, 0)
        (void) dup(0);
        (void) dup(0);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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