X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=disk%2Fpart_efi.c;h=8d67c09a43a22669af9e702114dc90f4a0d51fad;hb=b419e87287ddb26ed991a64b2b14db7841b5f8c6;hp=01f71bee79e2656a295ee1cd3505185efc9c5cf7;hpb=fd42e1b589b5ae7e89dc327a70e5852999a23aeb;p=oweals%2Fu-boot.git diff --git a/disk/part_efi.c b/disk/part_efi.c index 01f71bee79..8d67c09a43 100644 --- a/disk/part_efi.c +++ b/disk/part_efi.c @@ -655,6 +655,10 @@ int gpt_verify_partitions(struct blk_desc *dev_desc, (unsigned long long)partitions[i].size); if (le64_to_cpu(gpt_part_size) != partitions[i].size) { + /* We do not check the extend partition size */ + if ((i == parts - 1) && (partitions[i].size == 0)) + continue; + error("Partition %s size: %llu does not match %llu!\n", efi_str, (unsigned long long)gpt_part_size, (unsigned long long)partitions[i].size);