summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2018-06-14 01:40:33 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-06-14 01:40:33 +0200
commit93ea3069139ff3a83b0da46d360627980aeee8cd (patch)
treeb9fed49895b95bbc2bbf65d3456e4f1a5f03d3a7 /recovery.cpp
parentMerge "updater_sample: add proguard.flags" (diff)
parentMerge "Recovery image is self-contained" (diff)
downloadandroid_bootable_recovery-93ea3069139ff3a83b0da46d360627980aeee8cd.tar
android_bootable_recovery-93ea3069139ff3a83b0da46d360627980aeee8cd.tar.gz
android_bootable_recovery-93ea3069139ff3a83b0da46d360627980aeee8cd.tar.bz2
android_bootable_recovery-93ea3069139ff3a83b0da46d360627980aeee8cd.tar.lz
android_bootable_recovery-93ea3069139ff3a83b0da46d360627980aeee8cd.tar.xz
android_bootable_recovery-93ea3069139ff3a83b0da46d360627980aeee8cd.tar.zst
android_bootable_recovery-93ea3069139ff3a83b0da46d360627980aeee8cd.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 8f39679b7..f6d4212ee 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -820,15 +820,13 @@ static Device::BuiltinAction prompt_and_wait(Device* device, int status) {
break;
}
case Device::MOUNT_SYSTEM:
- // For a system image built with the root directory (i.e. system_root_image == "true"), we
- // mount it to /system_root, and symlink /system to /system_root/system to make adb shell
- // work (the symlink is created through the build system). (Bug: 22855115)
+ // the system partition is mounted at /mnt/system
if (android::base::GetBoolProperty("ro.build.system_root_image", false)) {
- if (ensure_path_mounted_at("/", "/system_root") != -1) {
+ if (ensure_path_mounted_at("/", "/mnt/system") != -1) {
ui->Print("Mounted /system.\n");
}
} else {
- if (ensure_path_mounted("/system") != -1) {
+ if (ensure_path_mounted_at("/system", "/mnt/system") != -1) {
ui->Print("Mounted /system.\n");
}
}