Merge "Revert "first_stage_mount: Bind mount /system after switch root"" am: e321b113d6
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2159462 Change-Id: Ie9afb0754d73a7bdcf735c8dc6d1c0fec4a514db Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
a367bdbc4c
1 changed files with 0 additions and 6 deletions
|
|
@ -518,12 +518,6 @@ bool FirstStageMount::TrySwitchSystemAsRoot() {
|
|||
|
||||
SwitchRoot("/system");
|
||||
|
||||
// Make /system a mountpoint so that adb-remount can move submounts under /system.
|
||||
if (access("/system", F_OK) == 0 &&
|
||||
mount("/system", "/system", nullptr, MS_BIND, nullptr) != 0) {
|
||||
PLOG(WARNING) << "Failed to bind mount /system for overlayfs";
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue