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.
TEST=To generate a diskimg by make_factory_package.sh with R61 version
of release image.
Reviewed-by: Marco Chen <email@example.com>
Commit-Queue: Marco Chen <firstname.lastname@example.org>
Tested-by: Marco Chen <email@example.com>
(cherry picked from commit 8e7774a7c1bfaf8f55cd0af3311de7ce06997b0d)
Reviewed-by: Wei-Han Chen <firstname.lastname@example.org>
Commit-Queue: Wei-Han Chen <email@example.com>
Tested-by: Wei-Han Chen <firstname.lastname@example.org>
1 file changed