summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2004-07-08 22:35:36 +0000
committerbrian <brian@FreeBSD.org>2004-07-08 22:35:36 +0000
commitaae31dbf3205a16e99cdd85918abc0a16b13a7c4 (patch)
tree20232a5e4a3c9e6b2610bd5b43c7e935d7896f38 /sys/alpha
parenteeb3c914453162ca5f06e82aeddf24e35a8c86ad (diff)
downloadFreeBSD-src-aae31dbf3205a16e99cdd85918abc0a16b13a7c4.zip
FreeBSD-src-aae31dbf3205a16e99cdd85918abc0a16b13a7c4.tar.gz
Change the following environment variables to kernel options:
bootp -> BOOTP bootp.nfsroot -> BOOTP_NFSROOT bootp.nfsv3 -> BOOTP_NFSV3 bootp.compat -> BOOTP_COMPAT bootp.wired_to -> BOOTP_WIRED_TO - i.e. back out the previous commit. It's already possible to pxeboot(8) with a GENERIC kernel. Pointed out by: dwmalone
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/alpha/autoconf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/alpha/alpha/autoconf.c b/sys/alpha/alpha/autoconf.c
index 0cf7e65..d3ffb23 100644
--- a/sys/alpha/alpha/autoconf.c
+++ b/sys/alpha/alpha/autoconf.c
@@ -27,6 +27,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_bootp.h"
#include "opt_isa.h"
#include "opt_nfs.h"
#include "opt_nfsroot.h"
@@ -202,12 +203,11 @@ void
cpu_rootconf()
{
#if defined(NFSCLIENT) && defined(NFS_ROOT)
- char *cp = NULL;
-
- if (nfs_diskless_valid || (cp = getenv("bootp.nfsroot")) != NULL)
- rootdevnames[0] = "nfs:";
- if (cp != NULL)
- freeenv(cp);
+ int order = 0;
+#if !defined(BOOTP_NFSROOT)
+ if (nfs_diskless_valid)
+#endif
+ rootdevnames[order++] = "nfs:";
#endif
}
SYSINIT(cpu_rootconf, SI_SUB_ROOT_CONF, SI_ORDER_FIRST, cpu_rootconf, NULL)
OpenPOWER on IntegriCloud