pengutronix / genimage

tool to generate multiple filesystem and flash images from a tree
GNU General Public License v2.0
308 stars 110 forks source link

image-hd: handle gpt-location when setting/checking the position of t… #99

Closed michaelolbrich closed 4 years ago

michaelolbrich commented 4 years ago

…he first partition

If gpt-location is set then the gpt entries are not placed directly behind the gpt header. Take this into account when calculating the first emtpy sector available for partitions.

Signed-off-by: Michael Olbrich m.olbrich@pengutronix.de

jameshilliard commented 4 years ago

When using the gpt-location option does this make it so that the start location of the first real partition entry is still after the end of the GPT partition table or does this make it so that a GPT partition can be placed before the table?

michaelolbrich commented 4 years ago

You cannot place a GPT partition in the space between header and table. This is for bootloaders that exist outside of regular partitions.

jameshilliard commented 4 years ago

Ok, so then the protective partition in a hybrid configuration would cover the bootloader as well then I guess(in addition to the header and table).

michaelolbrich commented 4 years ago

Yes, exactly.