diff mbox

[android/device/linaro/common] Let vold mount sdcard partition

Message ID AANLkTi=RwywAa09X25sSCwwV=vOcpyKz_L29nPiaoEZX@mail.gmail.com
State New
Headers show

Commit Message

Jeremy Chang March 21, 2011, 6:34 p.m. UTC
Create the directories that vold needs to complete the mounting.

vold communicates with MountService which manages Android platform
storage. Let vold do the sdcard partition mounting so sdcard partition
can be the Android external storage.

Signed-off-by: Jeremy Chang <jeremy.chang@linaro.org>
---
 init.rc |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)
diff mbox

Patch

diff --git a/init.rc b/init.rc
index af47666..7f94a21 100644
--- a/init.rc
+++ b/init.rc
@@ -45,22 +45,22 @@  loglevel 3
     mkdir /config 0500 root root

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

     # Directory for staging bindmounts
-    #mkdir /mnt/secure/staging 0700 root root
+    mkdir /mnt/secure/staging 0700 root root

     # Directory-target for where the secure container
     # imagefile directory will be bind-mounted
-    #mkdir /mnt/secure/asec  0700 root root
+    mkdir /mnt/secure/asec  0700 root root

     # Secure container public mount points.
-    #mkdir /mnt/asec  0700 root system
-    #mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
+    mkdir /mnt/asec  0700 root system
+    mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000

     # Filesystem image public mount points.
-    #mkdir /mnt/obb 0700 root system
-    #mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000
+    mkdir /mnt/obb 0700 root system
+    mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000

     write /proc/sys/kernel/panic_on_oops 1
     write /proc/sys/kernel/hung_task_timeout_secs 0
@@ -95,7 +95,6 @@  on fs
     mount ext4 mmc@blk0p3 /system ro remount
     mount ext4 mmc@blk0p5 /cache
     mount ext4 mmc@blk0p6 /data
-    mount ext4 mmc@blk0p7 /sdcard

 on post-fs
     # once everything is setup, no need to modify /