summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-10-05 11:28:27 +0000
committerobrien <obrien@FreeBSD.org>1998-10-05 11:28:27 +0000
commit25a96e9479767d898043b735d86ad0d014fd4713 (patch)
treee86d7c85296d8813ca52e411dcf7eb771c2d12c2 /sys/amd64
parent18fd7ac3576d7ab17f16bad6c04bd06442845d2f (diff)
downloadFreeBSD-src-25a96e9479767d898043b735d86ad0d014fd4713.zip
FreeBSD-src-25a96e9479767d898043b735d86ad0d014fd4713.tar.gz
Now require *FS_ROOT to enable the ability to mount a *FS /.
Previously one could config(8) a kernel that would not link.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/autoconf.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/sys/amd64/amd64/autoconf.c b/sys/amd64/amd64/autoconf.c
index 3b67b26..add16a6 100644
--- a/sys/amd64/amd64/autoconf.c
+++ b/sys/amd64/amd64/autoconf.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
- * $Id: autoconf.c,v 1.105 1998/09/14 19:56:38 sos Exp $
+ * $Id: autoconf.c,v 1.106 1998/09/15 10:03:42 gibbs Exp $
*/
/*
@@ -101,6 +101,16 @@
#include <sys/bus.h>
+#if defined( FFS_ROOT ) && !defined( FFS )
+#error ``options FFS_ROOT'' requires ``options FFS''
+#endif
+#if defined( NFS_ROOT ) && !defined( NFS )
+#error ``options NFS_ROOT'' requires ``options NFS''
+#endif
+#if defined( CD9660_ROOT ) && !defined( CD9660 )
+#error ``options CD9660_ROOT'' requires ``options CD9660''
+#endif
+
static void configure __P((void *));
SYSINIT(configure, SI_SUB_CONFIGURE, SI_ORDER_FIRST, configure, NULL)
@@ -109,7 +119,7 @@ static void configure_start __P((void));
static int setdumpdev __P((dev_t dev));
static void setroot __P((void));
-#ifdef CD9660
+#if defined(CD9660_ROOT)
#include <sys/fcntl.h>
#include <sys/proc.h>
@@ -169,7 +179,7 @@ find_cdrom_root()
rootdev = orootdev;
return EINVAL;
}
-#endif /* CD9660 */
+#endif /* CD9660_ROOT */
extern void xpt_init __P((void));
@@ -310,7 +320,7 @@ cpu_rootconf()
* XXX NetBSD has a much cleaner approach to finding root.
* XXX We should adopt their code.
*/
-#if defined(CD9660) || defined(CD9660_ROOT)
+#if defined(CD9660_ROOT)
if ((boothowto & RB_CDROM)) {
if (bootverbose)
printf("Considering CD-ROM root f/s.\n");
@@ -347,7 +357,7 @@ cpu_rootconf()
mountrootfsname = "nfs";
}
#endif /* BOOTP_NFSROOT */
-#if defined(NFS) || defined(NFS_ROOT)
+#if defined(NFS_ROOT)
if (!mountrootfsname && nfs_diskless_valid) {
if (bootverbose)
printf("Considering NFS root f/s.\n");
@@ -355,7 +365,7 @@ cpu_rootconf()
}
#endif /* NFS */
-#if defined(FFS) || defined(FFS_ROOT)
+#if defined(FFS_ROOT)
if (!mountrootfsname) {
mountrootfsname = "ufs";
if (bootverbose)
OpenPOWER on IntegriCloud