aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1999-05-03 09:36:29 +0000
committerDoug Rabson <dfr@FreeBSD.org>1999-05-03 09:36:29 +0000
commit84b399de519961b8ef8fb45fa4c029c20755158c (patch)
tree1e3c6a264b392753dd194c9482ceddd49c21602d /sys/alpha
parent67fb73e4b4e5848baf312fc6f34ffd439b632467 (diff)
Notes
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/alpha/autoconf.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/sys/alpha/alpha/autoconf.c b/sys/alpha/alpha/autoconf.c
index e5489c6c11d1..032fbdd61127 100644
--- a/sys/alpha/alpha/autoconf.c
+++ b/sys/alpha/alpha/autoconf.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: autoconf.c,v 1.15 1999/03/28 17:33:38 dfr Exp $
+ * $Id: autoconf.c,v 1.16 1999/04/16 21:21:25 peter Exp $
*/
#include "opt_bootp.h"
@@ -67,6 +67,8 @@ static int setdumpdev __P((dev_t dev));
device_t isa_bus_device = 0;
struct cam_sim *boot_sim = 0;
+extern int nfs_diskless_valid;
+
static void
configure_start()
@@ -227,6 +229,23 @@ cpu_rootconf()
}
#endif
+#ifdef BOOTP_NFSROOT
+ if (!strcmp(bootdev_protocol(), "BOOTP")
+ && !mountrootfsname && !nfs_diskless_valid) {
+ if (bootverbose)
+ printf("Considering BOOTP NFS root f/s.\n");
+ mountrootfsname = "nfs";
+ }
+#endif /* BOOTP_NFSROOT */
+#if defined(NFS) || defined(NFS_ROOT)
+ if (!mountrootfsname && nfs_diskless_valid) {
+ if (bootverbose)
+ printf("Considering NFS root f/s.\n");
+ mountrootfsname = "nfs";
+ }
+#endif /* NFS */
+
+
#if defined(FFS) || defined(FFS_ROOT)
if (!mountrootfsname) {
static char rootname[] = "da0a";