diff options
| author | Mike Kasick <mike@kasick.org> | 2013-01-22 22:48:42 -0500 |
|---|---|---|
| committer | Mike Kasick <mike@kasick.org> | 2013-01-22 22:48:42 -0500 |
| commit | 5366657219454434a99a5a5fb3d0dda4dad78b9f (patch) | |
| tree | 658a1ab208c96bc43f8d4e161ea483035ac21613 /rootdir/init.rc | |
| parent | 674a79d65011020c7a366b8fa9924f3bce72f72c (diff) | |
| download | system_core-5366657219454434a99a5a5fb3d0dda4dad78b9f.tar.gz system_core-5366657219454434a99a5a5fb3d0dda4dad78b9f.tar.bz2 system_core-5366657219454434a99a5a5fb3d0dda4dad78b9f.zip | |
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).
Diffstat (limited to 'rootdir/init.rc')
| -rw-r--r-- | rootdir/init.rc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index c344ffe2..39154aee 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -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. |
