svn commit: r327405 - head/usr.sbin/bsdinstall/partedit

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sun Dec 31 03:13:46 UTC 2017


Author: nwhitehorn
Date: Sun Dec 31 03:13:45 2017
New Revision: 327405
URL: https://svnweb.freebsd.org/changeset/base/327405

Log:
  Teach bsdinstall partedit/sade how to format FAT partitions on GPT, which
  have the partition type code "ms-basic-data".
  
  MFC after:	2 weeks

Modified:
  head/usr.sbin/bsdinstall/partedit/gpart_ops.c

Modified: head/usr.sbin/bsdinstall/partedit/gpart_ops.c
==============================================================================
--- head/usr.sbin/bsdinstall/partedit/gpart_ops.c	Sun Dec 31 03:06:29 2017	(r327404)
+++ head/usr.sbin/bsdinstall/partedit/gpart_ops.c	Sun Dec 31 03:13:45 2017	(r327405)
@@ -167,7 +167,8 @@ newfs_command(const char *fstype, char *command, int u
 			else if (strcmp(items[i].name, "atime") == 0)
 				strcat(command, "-O atime=off ");
 		}
-	} else if (strcmp(fstype, "fat32") == 0 || strcmp(fstype, "efi") == 0) {
+	} else if (strcmp(fstype, "fat32") == 0 || strcmp(fstype, "efi") == 0 ||
+	     strcmp(fstype, "ms-basic-data") == 0) {
 		int i;
 		DIALOG_LISTITEM items[] = {
 			{"FAT32", "FAT Type 32",
@@ -747,7 +748,8 @@ set_default_part_metadata(const char *name, const char
 		/* Get VFS from text after freebsd-, if possible */
 		if (strncmp("freebsd-", type, 8) == 0)
 			md->fstab->fs_vfstype = strdup(&type[8]);
-		else if (strcmp("fat32", type) == 0 || strcmp("efi", type) == 0)
+		else if (strcmp("fat32", type) == 0 || strcmp("efi", type) == 0
+	     	    || strcmp("ms-basic-data", type) == 0)
 			md->fstab->fs_vfstype = strdup("msdosfs");
 		else
 			md->fstab->fs_vfstype = strdup(type); /* Guess */


More information about the svn-src-head mailing list