sign_official_buid: Fix "incorrect rootfs hash" when image has no firmware updater .
For each mount_image_partition, we have to unmount explicitly before doing other
changes (especially when using dd) to image. Otherwise system may flush data
when releaseing loop device and cause output image to be corrupted.
TEST=sign_official_build.sh factory factory_install_shim.bin \
../../../tests/devkeys signed.bin ../../../tests/devkeys/key.versions
sign_official_build.sh verify signed.bin
Signed-off-by: Hung-Te Lin <email@example.com>
Reviewed-by: Mike Frysinger <firstname.lastname@example.org>
1 file changed