]> git.ipfire.org Git - thirdparty/systemd.git/commit
gpt: Expose GptPartitionType and get rid of SECONDARY/OTHER
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 13 Oct 2022 19:26:16 +0000 (21:26 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 15 Nov 2022 12:27:15 +0000 (13:27 +0100)
commit22e932f4d15f59ae773370a41a1c01ec93f8915a
tree0bfee6687fc6f1a16b24b656c1534d4d80db776f
parentbef69ae8780da17a807881d078247259170f868e
gpt: Expose GptPartitionType and get rid of SECONDARY/OTHER

Instead of exposing just the partition type UUID, let's expose the
GptPartitionType struct, which has a lot more information available
in a much more accessible way.

Also, let's get rid of SECONDARY/OTHER in PartitionDesignator. These
were only there to support preferred architectures in dissect-image.c,
but we can easily handle that by comparing architectures when we decide
whether to override a partition. This is done in a new function
compare_arch().
src/id128/id128.c
src/partition/repart.c
src/shared/dissect-image.c
src/shared/gpt.c
src/shared/gpt.h
src/sysupdate/sysupdate-partition.c
src/sysupdate/sysupdate-resource.c
src/sysupdate/sysupdate-resource.h
src/sysupdate/sysupdate-transfer.c
src/test/test-gpt.c