summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-05-04 23:21:23 +0000
committerderaadt <deraadt@openbsd.org>2007-05-04 23:21:23 +0000
commit90f33a2ced7c5b58ee24a4dcbefc4a69f245c512 (patch)
treea156655ba569233c0797f72b9e14fa35b38ceb06 /sys/kern/subr_disk.c
parentthe hardware does checksumming on rx as well. mark the mbufs with what the (diff)
downloadwireguard-openbsd-90f33a2ced7c5b58ee24a4dcbefc4a69f245c512.tar.xz
wireguard-openbsd-90f33a2ced7c5b58ee24a4dcbefc4a69f245c512.zip
when we are in ramdisk mode, we must also disable any previous mountroot
setting that pre-setroot() code did (for instance a network boot) found by phessler, tested by reyk
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 3e7d7a001cd..e0a01cce326 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.36 2007/05/04 19:30:55 deraadt Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.37 2007/05/04 23:21:23 deraadt Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -646,6 +646,7 @@ setroot(struct device *bootdv, int part, int exitflags)
#ifdef RAMDISK_HOOKS
bootdv = &fakerdrootdev;
+ mountroot = NULL;
part = 0;
#endif