Displaying 2 results from an estimated 2 matches for "dev_bootpath".
2005 Jan 05
1
[PATCH] kinit/nfsmount.c path from bootp
...ver bootpath and a message indicating the override is printed.
--- klibc-0.194/kinit/nfsroot.c.orig 2005-01-05 04:13:47.043897880 -0700
+++ klibc-0.194/kinit/nfsroot.c 2005-01-05 04:13:09.316633296 -0700
@@ -66,34 +66,21 @@
const int len = 1024;
struct netdev *dev;
char *path = NULL;
+ char *dev_bootpath = NULL;
char root[len];
char *x, *opts;
int ret = 0;
int a;
- if ((path = get_arg(argc, argv, "nfsroot=")) == NULL) {
- path = (char *) "/tftpboot/%s";
- }
-
- if (*path == '\0') {
- fprintf(stderr, "Root-NFS: no path\n");
- exit(1);
- }
-
a = 1;...
2011 Aug 07
2
[PATCH] kinit minor checkpatch cleanup
...e number */
*cptr = '\0';
major_num = strtoul(devname+5, &e1, 10);
diff --git a/usr/kinit/nfsroot.c b/usr/kinit/nfsroot.c
index b5ab3bb..3b80773 100644
--- a/usr/kinit/nfsroot.c
+++ b/usr/kinit/nfsroot.c
@@ -56,9 +56,8 @@ int mount_nfs_root(int argc, char *argv[], int flags)
dev_bootpath = dev->bootpath;
break;
}
- if (dev->ip_addr != INADDR_NONE && dev->ip_addr != INADDR_ANY) {
+ if (dev->ip_addr != INADDR_NONE && dev->ip_addr != INADDR_ANY)
client = dev->ip_addr;
- }
}
/*
@@ -107,6 +106,6 @@ int mount_nfs_root(int argc, char *...