aboutsummaryrefslogtreecommitdiffstats
path: root/rootdir/init.rc
diff options
context:
space:
mode:
authorMike Kasick <mike@kasick.org>2013-01-10 17:45:33 -0500
committerMike Kasick <mike@kasick.org>2013-01-10 17:45:33 -0500
commit36454361efaa4d30a6c8c2cca49121e35ef74f7e (patch)
tree3d2663837809e6b6b9dd2c9933a11830ae8325af /rootdir/init.rc
parent171456b69e744e9e201a51947227fc63001562c4 (diff)
downloadsystem_core-36454361efaa4d30a6c8c2cca49121e35ef74f7e.tar.gz
system_core-36454361efaa4d30a6c8c2cca49121e35ef74f7e.tar.bz2
system_core-36454361efaa4d30a6c8c2cca49121e35ef74f7e.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 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.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index c344ffe2..9a48fade 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -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