diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-06-14 01:14:29 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-06-14 01:14:29 +0200 |
commit | 397e8f2279621f4ca520c832b5fd05ccc8141176 (patch) | |
tree | 6e5a11ba2690f0c25b4436d5c09ff68efbeffb8a /recovery.cpp | |
parent | Merge "updater_sample: add proguard.flags" (diff) | |
parent | Recovery image is self-contained (diff) | |
download | android_bootable_recovery-397e8f2279621f4ca520c832b5fd05ccc8141176.tar android_bootable_recovery-397e8f2279621f4ca520c832b5fd05ccc8141176.tar.gz android_bootable_recovery-397e8f2279621f4ca520c832b5fd05ccc8141176.tar.bz2 android_bootable_recovery-397e8f2279621f4ca520c832b5fd05ccc8141176.tar.lz android_bootable_recovery-397e8f2279621f4ca520c832b5fd05ccc8141176.tar.xz android_bootable_recovery-397e8f2279621f4ca520c832b5fd05ccc8141176.tar.zst android_bootable_recovery-397e8f2279621f4ca520c832b5fd05ccc8141176.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 98cbfed2f..fea65ae9e 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"); } } |