Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=66041565d81ff12c130597b81c5b554089fd2507

commit 66041565d81ff12c130597b81c5b554089fd2507
Author: James Buren <[email protected]>
Date:   Tue Oct 9 05:06:50 2012 -0500

on new partitions, set their type to 'data'

diff --git a/src/block.c b/src/block.c
index 6a0cb7c..f20c986 100644
--- a/src/block.c
+++ b/src/block.c
@@ -478,7 +478,12 @@ extern int disk_create_partition(struct disk *disk,long 
long size)
errno = ERANGE;
fprintf(logfile,"%s: %s\n",__func__,strerror(errno));
return 0;
-  }
+  }
+
+  if(disk->type == DISKTYPE_DOS)
+    part.dostype = DOS_DATA;
+  else if(disk->type == DISKTYPE_GPT)
+    snprintf(part.gpttype,37,"%s",GPT_DATA);

memcpy(&disk->table[disk->size++],&part,sizeof(struct partition));
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to