|| ||Bryan O'Sullivan <firstname.lastname@example.org>|
|| ||[CFT] klibc-based userspace ipconfig and nfsroot replacements|
|| ||05 May 2003 21:51:58 -0700|
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:
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:
Otherwise, please send problem reports to me directly.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/