gpt: Store the architecture in GptPartitionType

We also add a function gpt_partition_type_uuid_to_arch() to get the
architecture of a partition type uuid.
This commit is contained in:
Daan De Meyer
2021-11-24 14:47:21 +01:00
parent 3c58ae1313
commit 51d1c8f2fe
3 changed files with 45 additions and 22 deletions
+2
View File
@@ -47,6 +47,8 @@ static void test_gpt_types_against_architectures(void) {
assert_se(gpt_partition_type_is_usr(id));
if (streq(prefix, "usr-") && streq(suffix, "-verity"))
assert_se(gpt_partition_type_is_usr_verity(id));
assert_se(gpt_partition_type_uuid_to_arch(id) == a);
}
}
}