This no longer depends on NFS being defined so that it
can check for an NFS root. With Lite2, the file system type can be checked by checking if the rootfs name == "nfs".
This commit is contained in:
parent
670718e23a
commit
dc14cd9f1b
@ -40,6 +40,7 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/disklabel.h>
|
||||
@ -77,11 +78,6 @@ struct swdevt swdevt[] = {
|
||||
int dmmin, dmmax, dmtext;
|
||||
#endif
|
||||
|
||||
#ifdef NFS
|
||||
extern int (*mountroot) __P((void));
|
||||
extern int nfs_mountroot __P((void));
|
||||
#endif
|
||||
|
||||
void gets __P((char *));
|
||||
|
||||
struct genericconf {
|
||||
@ -147,8 +143,8 @@ bad:
|
||||
printf("use dk%%d\n");
|
||||
goto retry;
|
||||
}
|
||||
#ifdef NFS
|
||||
if (mountroot == nfs_mountroot) {
|
||||
/* XXX */
|
||||
if (strcmp(mountrootfsname, "nfs") == 0) {
|
||||
/*
|
||||
* The NFS code in nfs_vfsops.c handles root and swap
|
||||
* for us if we're booting diskless. This is just to
|
||||
@ -157,7 +153,6 @@ bad:
|
||||
dumplo = -1;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
unit = 0;
|
||||
for (gc = genericconf; gc->gc_name; gc++) {
|
||||
for (bd = 0; bd < nblkdev; bd++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user