Add a warning if the starting sector is too low. The standard requires
that at least 16k is reserved for the GPT Partition Array, but some
tools produce GPT images with fewer than the required number of reserved
sectors.
Sponsored by: Netflix
Differential D42247
gpart: Add warning when the start sector is too low. imp on Oct 17 2023, 2:28 AM. Authored by Tags None Referenced Files
Subscribers
Details Add a warning if the starting sector is too low. The standard requires Sponsored by: Netflix
Diff Detail
Event TimelineComment Actions I've seen python scripts that create embedded SD images for things like mediatek or similar that also violate these rules. They code is quite ugly... Comment Actions
I think there's not much value in a consumer (system firmware, OS partition handling code) in rejecting a GPT that violates the spec and has a too-low start LBA so I guess it's not too surprising that EDK II accepts it. Comment Actions Sorry I didn't spot this / comment until after commit -- shouldn't this go to stderr? perhaps warnx? |