summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libparted/labels/gpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c
index 8b345d5..c5d7bb3 100644
--- a/libparted/labels/gpt.c
+++ b/libparted/labels/gpt.c
@@ -1565,7 +1565,7 @@ gpt_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state)
if (state)
gpt_part_data->type = p->type_uuid;
else if (guid_cmp (gpt_part_data->type, p->type_uuid) == 0)
- gpt_part_data->type = PARTITION_LINUX_DATA_GUID;
+ return gpt_partition_set_system (part, part->fs_type);
return 1;
}