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

Commit e321b113 authored by Yi-yo Chiang's avatar Yi-yo Chiang Committed by Gerrit Code Review
Browse files

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

parents c89e97f6 54ec48fa
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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;
}