From 45aa097296e87cb06c43636bb6cbb392a5ea4750 Mon Sep 17 00:00:00 2001 From: jonathan Date: Sat, 7 Nov 1998 01:08:00 +0000 Subject: [PATCH] Change COMPAT_386BSD_MBRPART: don't break on match, so that if there's more than one DOSTYP_386BSD partition, we pick the last one, not the first. That's what our install tools do/did with multiple ID-165 partitions. --- sys/arch/i386/i386/disksubr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c index 1db304c606cb..29b407abcd63 100644 --- a/sys/arch/i386/i386/disksubr.c +++ b/sys/arch/i386/i386/disksubr.c @@ -1,4 +1,4 @@ -/* $NetBSD: disksubr.c,v 1.34 1998/09/05 04:54:23 mycroft Exp $ */ +/* $NetBSD: disksubr.c,v 1.35 1998/11/07 01:08:00 jonathan Exp $ */ /* * Copyright (c) 1982, 1986, 1988 Regents of the University of California. @@ -152,7 +152,10 @@ readdisklabel(dev, strat, lp, osdep) if (dp[i].dp_typ == DOSPTYP_386BSD) { printf("WARNING: old BSD partition ID!\n"); ourdp = &dp[i]; - break; + /* + * If more than one matches, take last, + * as our install tool does. + */ } } }