diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-06 16:12:21 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-06 16:12:21 +0000 |
commit | d2a76fbe12b30df0204850e1e45f086b3edfb133 (patch) | |
tree | d16f74207a4e71a88f4c091c9bb8293f5fde4216 /sys/arch | |
parent | a52b6feffcd8d08bebd9becd0301b22b827c461c (diff) |
We want the first, not the last, OpenBSD partition in the MBR.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/stand/libsa/softraid.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/libsa/softraid.c b/sys/arch/amd64/stand/libsa/softraid.c index 01091e3db17..a8fca46b02a 100644 --- a/sys/arch/amd64/stand/libsa/softraid.c +++ b/sys/arch/amd64/stand/libsa/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.24 2016/01/06 02:10:03 krw Exp $ */ +/* $OpenBSD: softraid.c,v 1.25 2016/01/06 16:12:20 krw Exp $ */ /* * Copyright (c) 2012 Joel Sing <jsing@openbsd.org> @@ -556,8 +556,10 @@ sr_getdisklabel(struct sr_boot_volume *bv, struct disklabel *label) dp = &mbr.dmbr_parts[i]; if (!dp->dp_size) continue; - if (dp->dp_typ == DOSPTYP_OPENBSD) + if (dp->dp_typ == DOSPTYP_OPENBSD) { start = dp->dp_start; + break; + } } } |