disk: efi: ignore 'IGNOREME' GPT header found on cros eMMCs
authorUrja Rannikko <urjaman@gmail.com>
Thu, 11 Apr 2019 20:27:51 +0000 (20:27 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 23 Aug 2019 10:15:50 +0000 (18:15 +0800)
commit0557d46b63cc1d871f3752ed771a9fc13d0c9786
tree271b4d31b3e58026c65582e2ab360d9705406f28
parent20c568cae6e95c727bb97ba55a558916dc42baf4
disk: efi: ignore 'IGNOREME' GPT header found on cros eMMCs

Some ChromeOS devices (atleast veyron speedy) have the first 8MiB of
the eMMC write protected and equipped with a dummy 'IGNOREME' GPT
header - instead of spewing error messages about it, just silently
try the backup GPT.

Note: this does not touch the gpt cmd writing/verifying functions,
those will still complain.

Signed-off-by: Urja Rannikko <urjaman@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
disk/part_efi.c
include/part_efi.h