PATCH: fix nfsroot= option

unslider (unslider@balance.wiw.org)
Thu, 23 Sep 1999 09:22:01 -0400 (EDT)


The NFS root code didn't get updated when the kernel command line parsing
was changed. This patch makes the nfsroot= option work. It's against
2.3.18ac5 but should apply to anything vaguely recent.

---cut here---
--- linux.orig/fs/nfs/nfsroot.c Tue Aug 31 11:23:03 1999
+++ linux/fs/nfs/nfsroot.c Sun Sep 19 17:43:45 1999
@@ -320,7 +320,7 @@
* Parse NFS server and directory information passed on the kernel
* command line.
*/
-void __init nfs_root_setup(char *line, int *ints)
+void __init nfs_root_setup(char *line)
{
ROOT_DEV = MKDEV(UNNAMED_MAJOR, 255);
if (line[0] == '/' || line[0] == ',' || (line[0] >= '0' && line[0]
<= '9')) {
@@ -334,7 +334,7 @@
}
root_nfs_parse_addr(nfs_root_name);
}

+__setup("nfsroot=", nfs_root_setup);

/***************************************************************************
---cut here---

-- unS.
Below is a plot to destroy the world, cunningly disguised as an irc client.
use IO::Socket;$n=shift;($r=IO::Socket::INET->new(shift.":".shift))*
defined($c=fork)||die;$c&&do{for(;;){print<$r>||die}};do{print$r
"USER $n . . .\nNICK $n\n";while(<>){print$r $_}}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/