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

Commit 36454361 authored by Mike Kasick's avatar Mike Kasick
Browse files

init.rc: Create /storage mountpoint so Dalvik can mark as slave in zygotes

Mount a tmpfs as /storage in order to create a mountpoint, so that Dalvik
can later mark /storage as slave in zygotes.  Must use tmpfs as rootfs
can't be bind mounted (otherwise "mount rootfs /storage /storage bind"
would work as an alternative).
parent 171456b6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -60,6 +60,8 @@ loglevel 3
    # See storage config details at http://source.android.com/tech/storage/
    mkdir /mnt/shell 0700 shell shell
    mkdir /storage 0050 root sdcard_r
    # Create mountpoint so Dalvik can mark as slave in zygotes.
    mount tmpfs tmpfs /storage mode=0050,uid=0,gid=1028

    # Directory for putting things only root should see.
    mkdir /mnt/secure 0700 root root