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

Commit cdf6c7da authored by Yi-yo Chiang's avatar Yi-yo Chiang Committed by Automerger Merge Worker
Browse files

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

Merge "Revert "first_stage_mount: Bind mount /system after switch root"" am: e321b113 am: a367bdbc am: 3bc6b8e4 am: 6896be87 am: 1e7eaefd

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2159462



Change-Id: I4c7a0d4f165a8dc462e36a69163594428ddf6241
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 55c3f819 1e7eaefd
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -518,12 +518,6 @@ bool FirstStageMount::TrySwitchSystemAsRoot() {


    SwitchRoot("/system");
    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;
    return true;
}
}