From e15033ceaf8fb209afd46fdf0bf6b0b49ee6dd46 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 7 Jan 2016 00:56:47 +0000 Subject: We want the first, not the last, OpenBSD partition in the MBR. --- sys/arch/i386/stand/libsa/softraid.c | 6 ++++-- 1 file 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 @@ -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; + } } } -- cgit v1.2.3