summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormatt <matt@NetBSD.org>2003-02-03 23:02:42 +0000
committermatt <matt@NetBSD.org>2003-02-03 23:02:42 +0000
commita53ed95ee86fd25dd44e646a2ef10d4d57a57bb1 (patch)
tree1059b3e5a3edfc9951e9f5270c4083759acacc7d /sys/dev
parent373f9263564e03389a31c7cd4fb0c8d3cd38534c (diff)
Allow "the forcing of root on md0a to single user" to be overriden by using
options MEMORY_RBFLAGS=0 (XXX forcing to single user needs to die).
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/md_root.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/md_root.c b/sys/dev/md_root.c
index 9620386f66b..723d6c5fa02 100644
--- a/sys/dev/md_root.c
+++ b/sys/dev/md_root.c
@@ -1,4 +1,4 @@
-/* $NetBSD: md_root.c,v 1.6 2002/04/02 05:30:52 lukem Exp $ */
+/* $NetBSD: md_root.c,v 1.7 2003/02/03 23:02:43 matt Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: md_root.c,v 1.6 2002/04/02 05:30:52 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: md_root.c,v 1.7 2003/02/03 23:02:43 matt Exp $");
#include "opt_md.h"
@@ -59,6 +59,10 @@ char *md_root_image;
#endif
#define ROOTBYTES (MEMORY_DISK_ROOT_SIZE << DEV_BSHIFT)
+#ifndef MEMORY_RBFLAGS
+#define MEMORY_RBFLAGS RB_SINGLE /* force single user */
+#endif
+
/*
* This array will be patched to contain a file-system image.
* See the program mdsetimage(8) for details.
@@ -103,6 +107,6 @@ md_open_hook(int unit, struct md_conf *md)
if (unit == 0) {
/* The root ramdisk only works single-user. */
- boothowto |= RB_SINGLE;
+ boothowto |= MEMORY_RBFLAGS;
}
}