diff options
-rwxr-xr-x | scripts/image_signing/sign_official_build.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/image_signing/sign_official_build.sh b/scripts/image_signing/sign_official_build.sh index 173dd6b5..f365488d 100755 --- a/scripts/image_signing/sign_official_build.sh +++ b/scripts/image_signing/sign_official_build.sh @@ -598,9 +598,10 @@ resign_android_image_if_exists() { mount_image_partition "${image}" 3 "${rootfs_dir}" local system_img="${rootfs_dir}/opt/google/containers/android/system.raw.img" - - if [[ ! -e "${system_img}" ]]; then - info "Android image not found. Not signing Android APKs." + local arc_version=$(grep CHROMEOS_ARC_VERSION= \ + "${rootfs_dir}/etc/lsb-release" | cut -d= -f2) + if [[ ! -e "${system_img}" || -z "${arc_version}" ]]; then + info "ARC image not found. Not signing Android APKs." sudo umount "${rootfs_dir}" return fi |