diff options
author | 2007-05-18 07:37:18 +0000 | |
---|---|---|
committer | 2007-05-18 07:37:18 +0000 | |
commit | a4d01de18ce60243aefd5a9174438e71d200c3cc (patch) | |
tree | 864e2096562930bea80a198212e49ab4f603a1e4 /sys/kern/subr_disk.c | |
parent | unify the way we prefer other things (diff) | |
download | wireguard-openbsd-a4d01de18ce60243aefd5a9174438e71d200c3cc.tar.xz wireguard-openbsd-a4d01de18ce60243aefd5a9174438e71d200c3cc.zip |
in case of pre-configured nfs, we must assume that the bootdv is the rootdv
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 803f80aea9c..bf6a4c32e04 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.40 2007/05/15 01:58:06 deraadt Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.41 2007/05/18 07:37:18 deraadt Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -700,6 +700,7 @@ gotswap: swdevt[1].sw_dev = NODEV; #if defined(NFSCLIENT) } else if (mountroot == nfs_mountroot) { + rootdv = bootdv; rootdev = dumpdev = swapdev = NODEV; #endif } else if (mountroot == NULL) { |