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

Commit 53666572 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 mount in early-init as some devices' init.hardware.rc populate
/storage then, which the tmpfs would overwrite if mounted later.

Must use tmpfs as rootfs can't be bind mounted (otherwise "mount rootfs
/storage /storage bind" would work as an alternative).
parent 674a79d6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -20,6 +20,9 @@ on early-init

# create mountpoints
    mkdir /mnt 0775 root system
    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

on init

@@ -59,6 +62,7 @@ loglevel 3

    # See storage config details at http://source.android.com/tech/storage/
    mkdir /mnt/shell 0700 shell shell
    # Ensure permissions are set appropriately after device early-init.
    mkdir /storage 0050 root sdcard_r

    # Directory for putting things only root should see.