public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make nfsroot accept server addresses from BOOTP root
@ 2001-02-19 23:12 Ben LaHaise
  2001-02-20 17:44 ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: Ben LaHaise @ 2001-02-19 23:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: alan

Hello,

Here's a handy little patch that makes the kernel parse out the ip
address of the nfs server from the bootp root path.  Otherwise it's
impossible to boot the kernel without command line options on diskless
workstations (I hate RPL).

		-ben

diff -ur v2.4.1-ac18/fs/nfs/nfsroot.c work/fs/nfs/nfsroot.c
--- v2.4.1-ac18/fs/nfs/nfsroot.c	Mon Sep 25 16:13:53 2000
+++ work/fs/nfs/nfsroot.c	Mon Feb 19 18:05:24 2001
@@ -224,8 +224,7 @@
 		}
 	}
 	if (name[0] && strcmp(name, "default")) {
-		strncpy(buf, name, NFS_MAXPATHLEN-1);
-		buf[NFS_MAXPATHLEN-1] = 0;
+		root_nfs_parse_addr(name);
 	}
 }



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-02-20 23:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-19 23:12 [PATCH] make nfsroot accept server addresses from BOOTP root Ben LaHaise
2001-02-20 17:44 ` Tom Rini
2001-02-20 18:12   ` Ben LaHaise
2001-02-20 18:20     ` Tom Rini
2001-02-20 23:02     ` Russell King
2001-02-20 23:25       ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox