summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/autoconf.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-11-29 18:51:04 +0000
committerdillon <dillon@FreeBSD.org>1999-11-29 18:51:04 +0000
commitbe8594a1e7170240592eb897aecc4f6090dec1be (patch)
tree9834e82c87caa267f89b20b7a7bf51b6f9fe2fb0 /sys/amd64/amd64/autoconf.c
parent6ea8f09ae9fc1e857fd70fa71319d8c2daacd48d (diff)
downloadFreeBSD-src-be8594a1e7170240592eb897aecc4f6090dec1be.zip
FreeBSD-src-be8594a1e7170240592eb897aecc4f6090dec1be.tar.gz
Make BOOTP work again.
Submitted by: Doug Ambrisko <ambrisko@whistle.com>
Diffstat (limited to 'sys/amd64/amd64/autoconf.c')
-rw-r--r--sys/amd64/amd64/autoconf.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/amd64/amd64/autoconf.c b/sys/amd64/amd64/autoconf.c
index 9fa03c3..4f12924 100644
--- a/sys/amd64/amd64/autoconf.c
+++ b/sys/amd64/amd64/autoconf.c
@@ -48,6 +48,7 @@
#include "opt_bootp.h"
#include "opt_ffs.h"
#include "opt_cd9660.h"
+#include "opt_nfs.h"
#include "opt_nfsroot.h"
#include "opt_bus.h"
#include "opt_rootdevname.h"
@@ -213,12 +214,18 @@ configure_final(dummy)
cold = 0;
}
+#ifdef BOOTP
+extern void bootpc_init(void);
+#endif
/*
* Do legacy root filesystem discovery.
*/
void
cpu_rootconf()
{
+#ifdef BOOTP
+ bootpc_init();
+#endif
#if defined(NFS) && defined(NFS_ROOT)
#if !defined(BOOTP_NFSROOT)
if (nfs_diskless_valid)
@@ -226,7 +233,8 @@ cpu_rootconf()
rootdevnames[0] = "nfs:";
#endif
#if defined(FFS) && defined(FFS_ROOT)
- setroot();
+ if (!rootdevnames[0])
+ setroot();
#endif
}
SYSINIT(cpu_rootconf, SI_SUB_ROOT_CONF, SI_ORDER_FIRST, cpu_rootconf, NULL)
OpenPOWER on IntegriCloud