diff options
author | Brian C. Lane <bcl@redhat.com> | 2021-09-30 13:16:12 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2021-09-30 14:07:29 -0700 |
commit | a1f8bcde22bbd97ef7abae3c83ede77fc25a301c (patch) | |
tree | 6b78d5ae55bf0f1d71b0a73e5c9db58d76d6e568 /libparted | |
parent | 10ad2aac0453f10b2e355a0df03618e0ebc593be (diff) | |
download | parted-a1f8bcde22bbd97ef7abae3c83ede77fc25a301c.tar.gz |
gpt: Revert to filesystem GUID when setting flag to off
Diffstat (limited to 'libparted')
-rw-r--r-- | libparted/labels/gpt.c | 2 |
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; } |