make_factory_package: to copy EFI partition by image_partition_overwrite().

Originally copy EFI partition from factory image is done by
image_partition_copy() and this function needs the same partition size
of src and dest. Now new release image is with more bigger partition
size of EFI, and the output diskimg is referred to partition table of
release image. In this case EFI partition in factory image will be small
then diskimg hence we need to call image_partition_overwrite(). Which
can cover conditions of either two partitions are the same or source one
is small then destination.

BUG=b:68242699
TEST=To generate a diskimg by make_factory_package.sh with R61 version
of release image.

Change-Id: I8fc2410f77012670dc7d9f2e3e8f01792322e61f
Reviewed-on: https://chromium-review.googlesource.com/741382
Reviewed-by: Marco Chen <marcochen@chromium.org>
Commit-Queue: Kitty Liu <kitty.liu@intel.corp-partner.google.com>
Tested-by: Kitty Liu <kitty.liu@intel.corp-partner.google.com>
1 file changed