Merge "Revert "first_stage_mount: Bind mount /system after switch root""

This commit is contained in:
Yi-yo Chiang 2022-07-20 03:49:59 +00:00 committed by Gerrit Code Review
commit e321b113d6

View file

@ -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;
}