[parted-devel] [PATCH 3/3] gpt: Revert to filesystem GUID when setting flag to off

Brian C. Lane bcl at redhat.com
Thu Sep 30 22:47:03 BST 2021


---
 libparted/labels/gpt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
   }
 
-- 
2.31.1




More information about the parted-devel mailing list