diff options
author | Jiyong Park <jiyong@google.com> | 2018-06-14 02:45:19 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-06-14 02:45:19 +0200 |
commit | a475967ba1e62bff135e3c5387064e3eac5e19fe (patch) | |
tree | b9fed49895b95bbc2bbf65d3456e4f1a5f03d3a7 /recovery.cpp | |
parent | Merge "updater_sample: add proguard.flags" am: 5ced47d120 am: 9b6a9aceae (diff) | |
parent | Merge "Recovery image is self-contained" am: 397e8f2279 (diff) | |
download | android_bootable_recovery-a475967ba1e62bff135e3c5387064e3eac5e19fe.tar android_bootable_recovery-a475967ba1e62bff135e3c5387064e3eac5e19fe.tar.gz android_bootable_recovery-a475967ba1e62bff135e3c5387064e3eac5e19fe.tar.bz2 android_bootable_recovery-a475967ba1e62bff135e3c5387064e3eac5e19fe.tar.lz android_bootable_recovery-a475967ba1e62bff135e3c5387064e3eac5e19fe.tar.xz android_bootable_recovery-a475967ba1e62bff135e3c5387064e3eac5e19fe.tar.zst android_bootable_recovery-a475967ba1e62bff135e3c5387064e3eac5e19fe.zip |
Diffstat (limited to 'recovery.cpp')
-rw-r--r-- | recovery.cpp | 8 |
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"); } } |