summaryrefslogtreecommitdiff
path: root/payload_consumer
diff options
context:
space:
mode:
authorLuca Stefani <luca.stefani.ge1@gmail.com>2020-03-13 11:32:29 +0100
committerLuK1337 <priv.luk@gmail.com>2020-09-29 11:31:37 +0200
commitff924af79c461768b2425db7b65981d29b27dfaf (patch)
treeafdbe5f831d8a8cd985f2015cfc0c3abf3f6efcf /payload_consumer
parent6c21a928581d59134f81b2ee2135c4078fe86434 (diff)
update_engine: Run backuptool only in debuggable buildsr11.0
Change-Id: If4da655396546ac3c13b9eb556055caa58bafcf0
Diffstat (limited to 'payload_consumer')
-rw-r--r--payload_consumer/postinstall_runner_action.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/payload_consumer/postinstall_runner_action.cc b/payload_consumer/postinstall_runner_action.cc
index f5756ab4..3f905fd4 100644
--- a/payload_consumer/postinstall_runner_action.cc
+++ b/payload_consumer/postinstall_runner_action.cc
@@ -152,6 +152,7 @@ void PostinstallRunnerAction::PerformPartitionPostinstall() {
}
#ifdef __ANDROID__
+#ifdef RUN_BACKUPTOOL
// Check the currently installed /system partition to see if it's ever
// been mounted R/W. If it has, we'll run backuptool scripts for it
// since we can safely assume something on the partition has been
@@ -216,6 +217,7 @@ void PostinstallRunnerAction::PerformPartitionPostinstall() {
}
utils::UnmountFilesystem(fs_mount_dir_);
+#endif // RUN_BACKUPTOOL
// In Chromium OS, the postinstall step is allowed to write to the block
// device on the target image, so we don't mark it as read-only and should