Module Name:    src
Committed By:   msaitoh
Date:           Wed Aug 28 10:01:57 UTC 2019

Modified Files:
        src/usr.sbin/sysinst [netbsd-9]: mbr.c

Log Message:
Pull up following revision(s) (requested by martin in ticket #125):
        usr.sbin/sysinst/mbr.c: revision 1.21
When requesting no special FS sub type, default to FAT32 with LBA.
Fixes one part of PR 54490.


To generate a diff of this commit:
cvs rdiff -u -r1.19.2.1 -r1.19.2.2 src/usr.sbin/sysinst/mbr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/mbr.c
diff -u src/usr.sbin/sysinst/mbr.c:1.19.2.1 src/usr.sbin/sysinst/mbr.c:1.19.2.2
--- src/usr.sbin/sysinst/mbr.c:1.19.2.1	Sun Aug 18 13:21:40 2019
+++ src/usr.sbin/sysinst/mbr.c	Wed Aug 28 10:01:57 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: mbr.c,v 1.19.2.1 2019/08/18 13:21:40 msaitoh Exp $ */
+/*	$NetBSD: mbr.c,v 1.19.2.2 2019/08/28 10:01:57 msaitoh Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -1047,6 +1047,9 @@ mbr_get_fs_part_type(unsigned fs_type, u
 	case FS_EX2FS:
 		return &mbr_gen_type_desc[MBR_PTYPE_LNXEXT2].gen;
 	case FS_MSDOS:
+		if (sub_type == 0)
+			sub_type = MBR_PTYPE_FAT32L;
+
 		switch (sub_type) {
 		case MBR_PTYPE_FAT12:
 		case MBR_PTYPE_FAT16S:

Reply via email to