diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-07 00:56:47 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-07 00:56:47 +0000 |
commit | e15033ceaf8fb209afd46fdf0bf6b0b49ee6dd46 (patch) | |
tree | 7699ffd1d51a4cb181afe4874730e565b405700c /sys/arch/i386 | |
parent | a39d71bf4f0d551846a6f1f610a1e94e23e75fa6 (diff) |
We want the first, not the last, OpenBSD partition in the MBR.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/stand/libsa/softraid.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/libsa/softraid.c b/sys/arch/i386/stand/libsa/softraid.c index 79fe62d143d..22e861b815c 100644 --- a/sys/arch/i386/stand/libsa/softraid.c +++ b/sys/arch/i386/stand/libsa/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.15 2015/10/28 13:33:42 jsing Exp $ */ +/* $OpenBSD: softraid.c,v 1.16 2016/01/07 00:56:46 krw Exp $ */ /* * Copyright (c) 2012 Joel Sing <jsing@openbsd.org> @@ -413,8 +413,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; + } } } |