summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2014-11-21 00:46:52 -0600
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 17:50:17 -0700
commit0792a21ceb5e3db8cb27415b4f44b118e315adea (patch)
tree8c8c758744c50e3a7fb1b25ef9ea54ad95b9058a
parent8319708635ced660b18c572eaf0e65ae879c3fd8 (diff)
downloadbuild-0792a21ceb5e3db8cb27415b4f44b118e315adea.zip
build-0792a21ceb5e3db8cb27415b4f44b118e315adea.tar.gz
build-0792a21ceb5e3db8cb27415b4f44b118e315adea.tar.bz2
build: Ensure /system unmounted at install start
Account for the possibility that a user has mounted system manually before installing the FullOTA package. Change-Id: I97d0540676a7ce98762545e76ecb1a7f6335d204
-rwxr-xr-xtools/releasetools/ota_from_target_files1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/releasetools/ota_from_target_files b/tools/releasetools/ota_from_target_files
index 71a0837..1624874 100755
--- a/tools/releasetools/ota_from_target_files
+++ b/tools/releasetools/ota_from_target_files
@@ -597,6 +597,7 @@ else if get_stage("%(bcb_dev)s") == "3/3" then
script.Print("Target: %s" % CalculateFingerprint(
oem_props, oem_dict, OPTIONS.info_dict))
+ script.AppendExtra("ifelse(is_mounted(\"/system\"), unmount(\"/system\"));")
device_specific.FullOTA_InstallBegin()
if OPTIONS.backuptool: