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

Commit 3bc6b8e4 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

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



Change-Id: Ib74e85abc09cc40430171e02b3a370c303b953cb
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 5b2b2848 a367bdbc
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;
}