guid and name function should be called before storing
partition info.
Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
switch (type) {
case 0xef:
- *name = "EFI System Partition";
+ if(*name == NULL)
+ *name = "EFI System Partition";
guid = GUID_PARTITION_SYSTEM;
break;
case 0x83:
*(p++) = 0;
parts[part].start = to_kbytes(p);
}
+ part_guid = type_to_guid_and_name(type, &name);
parts[part].size = to_kbytes(optarg);
parts[part].required = required;
parts[part].name = name;
*/
name = NULL;
required = 0;
- part_guid = type_to_guid_and_name(type, &name);
break;
case 'N':
name = optarg;