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

From: Adam J. Richter (
Date: Fri May 26 2000 - 09:28:52 EST

        Werner Almesberger's support for unmounting the previous rooot
partition is useful in a much broader variety of situations, and
makes much less generally useful /linuxrc support unnecessary.

        In our initial ramdisk images, we do not use /linuxrc.
Instead, the ramdisks's executable is named /sbin/init, and it
does, essentially:

        mount /dev/<the-real-root-device> /root
        cd /root
        exec ./usr/sbin/chroot . ./sbin/init

        Later, when the system is running from the real root, it
does "umount /dev/rd/0".

        The less general /linuxrc code complicates the kernel by having
a context where user level programs may be running but not everything in
the kernel is initialized, and just adds special case code to the
kernel. I think Werner's unmount-old-root support should be part of
the standard kernel, and the /linuxrc hack should be removed.

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104 \ / 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
Please read the FAQ at

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