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

Commit 84d3d3f4 authored by Tom Cherry's avatar Tom Cherry Committed by android-build-merger
Browse files

Merge "init: clarify why we mount /mnt/... in first stage init" am: 32638a1e am: 8c8eb826

am: 620568ec

Change-Id: I2293b22e87f31c08e2a5376a2c45e502ba9a2461
parents d515aa27 620568ec
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -84,6 +84,9 @@ int main(int argc, char** argv) {
    CHECKCALL(mknod("/dev/ptmx", S_IFCHR | 0666, makedev(5, 2)));
    CHECKCALL(mknod("/dev/ptmx", S_IFCHR | 0666, makedev(5, 2)));
    CHECKCALL(mknod("/dev/null", S_IFCHR | 0666, makedev(1, 3)));
    CHECKCALL(mknod("/dev/null", S_IFCHR | 0666, makedev(1, 3)));


    // These below mounts are done in first stage init so that first stage mount can mount
    // subdirectories of /mnt/{vendor,product}/.  Other mounts, not required by first stage mount,
    // should be done in rc files.
    // Mount staging areas for devices managed by vold
    // Mount staging areas for devices managed by vold
    // See storage config details at http://source.android.com/devices/storage/
    // See storage config details at http://source.android.com/devices/storage/
    CHECKCALL(mount("tmpfs", "/mnt", "tmpfs", MS_NOEXEC | MS_NOSUID | MS_NODEV,
    CHECKCALL(mount("tmpfs", "/mnt", "tmpfs", MS_NOEXEC | MS_NOSUID | MS_NODEV,