]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (gpt) fix check for beginning of protective partition
authorMichael Marineau <michael.marineau@coreos.com>
Sat, 2 May 2015 04:44:33 +0000 (21:44 -0700)
committerKarel Zak <kzak@redhat.com>
Tue, 5 May 2015 10:28:52 +0000 (12:28 +0200)
commitc6bf5c094d90a8a67317ac0fe5b685e7c2b54199
tree454e7f78d1391ed7cf13e42327cce33c517dfc6c
parentd60d5b74d2b0ff0f58ea445d93d328e76f2cb498
libfdisk: (gpt) fix check for beginning of protective partition

Search for the protective partition before attempting to validate that
it covers the GPT header. Some hybrid MBRs list partitions out of order.
For example, CoreOS images ship with a hybrid MBR that lists the boot
partition first and the protective partition second in order to maintain
compatibility with old versions of Xen's PV-GRUB.

Signed-off-by: Michael Marineau <michael.marineau@coreos.com>
libfdisk/src/gpt.c