Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54ec48fa authored by Zhuoyao Zhang's avatar Zhuoyao Zhang
Browse files

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

This reverts commit d7e6353a.

Reason for revert: b/239574953 breaking emulator based test on g3

Change-Id: Ib7d17fe8383937c7764f6612cf89db4fb7e5a4d3
parent d7e6353a
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -518,12 +518,6 @@ bool FirstStageMount::TrySwitchSystemAsRoot() {
        return false;
    }

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