From 06f2b92916e509e1eed317e90cbf00eb97baf1b8 Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Tue, 7 Aug 2012 09:22:46 +0000 Subject: [PATCH] As it turned out, there are some installations, where BSD label contains partitions with type zero. And it has worked. So, allow detect these partitions. Reported by: glebius --- sys/boot/common/part.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/common/part.c b/sys/boot/common/part.c index 661457381580..ac1596dfccb9 100644 --- a/sys/boot/common/part.c +++ b/sys/boot/common/part.c @@ -466,7 +466,7 @@ ptable_bsdread(struct ptable *table, void *dev, diskread_t dread) for (i = 0; i < dl->d_npartitions; i++, part++) { if (i == RAW_PART) continue; - if (part->p_size == 0 || part->p_fstype == 0) + if (part->p_size == 0) continue; entry = malloc(sizeof(*entry)); if (entry == NULL)