I have 2 diskless machines both tftping the kernel from the network and they
work just fine. Both are using kernel 2.4.19 vanalla with a small patch to
force ip=auto if nfs=/dev/nfs
[wakko@gohan:/] uname -a
Linux gohan 2.4.19 #1 SMP Tue Sep 3 13:02:36 EDT 2002 i686 unknown
[wakko@gohan:/] mount
rod:/tftpboot/gohan on / type nfs
(rw,intr,hard,rsize=8192,wsize=8192,intr,hard,rsize=8192,wsize=8192)
/proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
[wakko@gohan:/]
It's a very small patch to make that work w/o saying ip=auto on the command
line (I did this originally because I used a kernel disk w/o a boot loader
on some boxes at work)
--- net/ipv4/ipconfig-orig.c 2001-11-19 20:48:35.000000000 -0500
+++ net/ipv4/ipconfig.c 2001-11-19 20:56:21.000000000 -0500
@@ -1105,7 +1105,11 @@
proc_net_create("pnp", 0, pnp_get_info);
#endif /* CONFIG_PROC_FS */
- if (!ic_enable)
+ if (!ic_enable
+#if defined(IPCONFIG_DYNAMIC) && defined(CONFIG_ROOT_NFS)
+ && ROOT_DEV != MKDEV(UNNAMED_MAJOR, 255)
+#endif
+ )
return 0;
I did a cut'n'paste so I don't know if it will apply correctly but you get
the idea.
One thing I had problems with was using USB to mount the rootfs (usb hdd
actually) and I suspect the same with a USB nic (loading the kernel from
floppy).
-- Lab tests show that use of micro$oft causes cancer in lab animals - 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/