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: I0e786b61997847d5a022eedf55fffb6f362a1fb1
Reviewed-on: https://chromium-review.googlesource.com/737615
Reviewed-by: Marco Chen <marcochen@chromium.org>
Commit-Queue: Marco Chen <marcochen@chromium.org>
Tested-by: Marco Chen <marcochen@chromium.org>
(cherry picked from commit 8e7774a7c1bfaf8f55cd0af3311de7ce06997b0d)
Reviewed-on: https://chromium-review.googlesource.com/897039
Reviewed-by: Wei-Han Chen <stimim@chromium.org>
Commit-Queue: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
1 file changed