[CFT] klibc-based userspace ipconfig and nfsroot replacements

From: Bryan O'Sullivan (bos@serpentine.com)
Date: Mon May 05 2003 - 23:51:58 EST


I've done some work within the framework of klibc and initramfs to
replace the in-kernel ipconfig and nfsroot code. A snapshot of the
klibc CVS tree is available at:

    http://www.speakeasy.org/~bos/klibc-20020505.tar.bz2

This contains a klibc tree that builds against 2.5.68 and 2.5.69 (at
least on x86), along with three programs of interest:

      * ipconfig was written by Russell King several months ago. I've
        removed bit rot from the code and made some changes so that it
        handles both DHCP and static configuration.
      * nfsmount is a filesystem mounter for NFS v2 and v3, UDP and
        TCP. Tested only against Linux servers so far.
      * kinit is a single statically-linked binary that incorporates
        both ipconfig and nfsmount, and which can be dropped into an
        initramfs filesystem for use as /sbin/init. It parses
        /proc/cmdline for "ip=" and "nfsroot=" sections, performs IP
        configuration, NFS mounting, and finally does a pivot_root to
        the freshly-mounted filesystem.

I don't yet have quite enough hardware handy to be able to test the last
10 lines of code in kinit without substantial inconvenience, but It
Should Work (TM).

If you're interested in kicking the tyres and ironing out problems, you
may want to subscribe to the klibc mailing list so that HPA and others
can see what's going on:

    http://www.zytor.com/mailman/listinfo/klibc

Otherwise, please send problem reports to me directly.

        <b

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:24 EST