mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-09 20:51:16 +00:00
When writing the GPT header, the tool always wrote the GPT entries belonging to the primary header to LBA following the header. Normally this is LBA 2 as the header is located in LBA 1. The GPT allows for up to 128 entries that all in all cover 16 KiB of storage space. However, on some systems, e.g. ARM-based machines, the bootloader can be stored in this region. For this reason the GPT entries may be moved to a different LBA. This commit changes the tool to adhere to then given GPE LBA in header when writing out the modified GPT data. Fixes #4720.