In tizen, user partition is created as remained disk size.
It's a difficult to fix to constant value.
This patch is help to skip the verification if partition size is smaller than real size.
Change-Id: I7156ddd8b62aec5e931b5fa14a9ad5a262a3a646
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
if ((i == parts - 1) && (partitions[i].size == 0))
continue;
+ if (partitions[i].size < le64_to_cpu(gpt_part_size))
+ continue;
+
pr_err("Partition %s size: %llu does not match %llu!\n",
efi_str, (unsigned long long)gpt_part_size,
(unsigned long long)partitions[i].size);