Re: NFS root on 2.4.18-14

From: Wakko Warner (wakko@animx.eu.org)
Date: Mon Oct 14 2002 - 08:56:47 EST


> > I use Red Hat 8.0 and kernel 2.4.18-14, which come from redhat
> > distribution. I want create a NFS-root kernel to build a diskless linux
> > using NFS root. I select "IP kernel level configuration-> BOOTP, DHCP",
> > NFS root support. I boot client using my kernel, it does not requrest for
> > an IP address. It try to mount NFS root immediately. Do I forget
> > something?
> If you try to boot from a floppy that was created like "dd if=vmlinuz
> of=/dev/fd0" you will need the attached patch. Alan Cox however told me
> that the ability to boot without boot manager (e.g. lilo) will
> eventually go away.

I hope it doesn't. I use it quite frequently at work. It's jsut so much
easier to use than installing a bootloader onto a floppy, mounting, copying
the kernel and so forth.

I did this patch which works for me, but only if root=/dev/nfs It was done
against 2.4.13 or something around there, but it applies with offset to all
newer 2.4 kernels and I believe all 2.5 kernels.

--- 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;
 
         DBG(("IP-Config: Entered.\n"));

-- 
 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/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:49 EST