[Midnightbsd-cvs] src [11548] trunk/sys/boot/common/disk.c: fix partition

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Jul 7 17:25:09 EDT 2018


Revision: 11548
          http://svnweb.midnightbsd.org/src/?rev=11548
Author:   laffer1
Date:     2018-07-07 17:25:08 -0400 (Sat, 07 Jul 2018)
Log Message:
-----------
fix partition

Modified Paths:
--------------
    trunk/sys/boot/common/disk.c

Modified: trunk/sys/boot/common/disk.c
===================================================================
--- trunk/sys/boot/common/disk.c	2018-07-07 20:42:44 UTC (rev 11547)
+++ trunk/sys/boot/common/disk.c	2018-07-07 21:25:08 UTC (rev 11548)
@@ -202,7 +202,7 @@
 		    od->sectorsize));
 	strcat(line, "\n");
 	pager_output(line);
-	if (part->type == PART_FREEBSD) {
+	if (part->type == PART_MIDNIGHTBSD) {
 		/* Open slice with BSD label */
 		pa->dev->d_offset = part->start;
 		table = ptable_open(pa->dev, part->end - part->start + 1,
@@ -325,7 +325,7 @@
 		 * whole MBR slice.
 		 */
 		if (partition == -1 &&
-		    part.type != PART_FREEBSD)
+		    part.type != PART_MIDNIGHTBSD)
 			goto out;
 		/* Try to read BSD label */
 		table = ptable_open(dev, part.end - part.start + 1,



More information about the Midnightbsd-cvs mailing list