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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user