summaryrefslogtreecommitdiff
path: root/payload_consumer/postinstall_runner_action.cc
diff options
context:
space:
mode:
Diffstat (limited to 'payload_consumer/postinstall_runner_action.cc')
-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