summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-10-29 18:46:53 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-10-29 18:46:53 +0000
commitda14d7790c93bdf8b568b29b0ab8a652bc95baae (patch)
treed16c21ec8ae966fc90799ea5e9fb5ce25f08e719 /sys/arch/i386
parent55076a7e5f3140f7be84e40e22c34d7039a6743f (diff)
The default for swap should be partition 'b' on the same unit as root is,
not partition 'b' on unit 0. ok deraadt@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/autoconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/autoconf.c b/sys/arch/i386/i386/autoconf.c
index 9d71f6ce610..9f133d9d2e7 100644
--- a/sys/arch/i386/i386/autoconf.c
+++ b/sys/arch/i386/i386/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.66 2006/10/17 19:39:06 deraadt Exp $ */
+/* $OpenBSD: autoconf.c,v 1.67 2006/10/29 18:46:52 kettenis Exp $ */
/* $NetBSD: autoconf.c,v 1.20 1996/05/03 19:41:56 christos Exp $ */
/*-
@@ -492,5 +492,5 @@ rootconf(void)
}
if (mountroot == dk_mountroot)
swdevt[0].sw_dev = argdev = dumpdev =
- makedev(major(rootdev), 1);
+ MAKEDISKDEV(major(rootdev), DISKUNIT(rootdev), 1);
}