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

From: Adam J. Richter (adam@yggdrasil.com)
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
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:15 EST