nfsroot patch

Jacek Zapala (jacek@deuter.im.pw.edu.pl)
Tue, 30 Apr 1996 20:05:03 +0200 (MET DST)


Here is a patch for nfsroot, which allows "nfsroot" kernel command
line parameter to work as it should. In 1.3.97 kernel (and some before
it) it is impossible to mount root file system from different server than
BOOTP server.

Jacek Zapala

--- nfsroot.c.orig Mon Apr 22 17:49:02 1996
+++ nfsroot.c Tue Apr 30 19:18:33 1996
@@ -51,6 +51,8 @@
* without giving a path name. Fix BOOTP request
* for domainname (domainname is NIS domain, not
* DNS domain!). Skip dummy devices for BOOTP.
+ * Jacek Zapala : Fixed a bug which prevented server-ip address
+ * from nfsroot parameter from being used.
*
*/

@@ -1060,6 +1062,8 @@
break;
if (*cp == '.' || octets == 3)
octets++;
+ if (octets < 4)
+ cp++;
cq = cp;
}
if (octets == 4 && (*cp == ':' || *cp == '\0')) {