[PATCH] partitions: efi: Fix position of alternate gpt when writing

Sascha Hauer s.hauer at pengutronix.de
Wed Feb 12 06:05:12 PST 2025


On Tue, 11 Feb 2025 10:34:08 +0100, Sascha Hauer wrote:
> The primary GPT has a pointer to the alternate GPT. Set this pointer
> correctly when writing the partition table.
> 
> When the GPT originally has been created on the device, the alternate GPT
> should be at the end of the device already. However, when the GPT was
> created on an image which was then written to the disk, the alternate GPT
> might be at the end of the image instead of the device. In this case
> the alternate GPT changes its position during a partition write, so we
> have to adjust the pointer from the primary to the alternate GPT
> accordingly.
> 
> [...]

Applied, thanks!

[1/1] partitions: efi: Fix position of alternate gpt when writing
      https://git.pengutronix.de/cgit/barebox/commit/?id=d35dd0ae3e0a (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list