From patchwork Mon Mar 21 18:34:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Chang X-Patchwork-Id: 713 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:45:04 -0000 Delivered-To: patches@linaro.org Received: by 10.220.28.198 with SMTP id n6cs148150vcc; Mon, 21 Mar 2011 11:35:03 -0700 (PDT) Received: by 10.227.165.194 with SMTP id j2mr4425713wby.178.1300732502628; Mon, 21 Mar 2011 11:35:02 -0700 (PDT) Received: from mail-wy0-f178.google.com (mail-wy0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id v59si4062180wei.176.2011.03.21.11.35.02 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Mar 2011 11:35:02 -0700 (PDT) Received-SPF: pass (google.com: domain of shunyu.chang@gmail.com designates 74.125.82.178 as permitted sender) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=pass (google.com: domain of shunyu.chang@gmail.com designates 74.125.82.178 as permitted sender) smtp.mail=shunyu.chang@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by wyj26 with SMTP id 26so6920506wyj.37 for ; Mon, 21 Mar 2011 11:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=EPryOXAlSk2bff4/1uGBY0pkQZMjmQFP4xEucCAVoas=; b=PDJZm2fjxoVeZpBi36WUTvNTa2kq2QEU14uG1Q20qYUEBo8oEM5b/NR+pl9SfpJ6TU fWLYK1CwML9LOKSiFEsq6ITT3arlckyRq8cf+unl/CCuMLyapxRUFiJ0LvsrjvX0HMKR 6hIyiqsbr5CrCwflmTzwm8kXw7MXyb12jqueY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; b=PNEgYkki302tBEPVKfLjxPfvWMOQKOiyokKomHCMC0pwEPhvBeq6bJXq+py7mrhLWf XRL0q0w99lkw7b2aSE8HerMKTTgvsRaKMcMG+BZ3iKFoU1yR/kEKMFFaqamuGamqkHHv Paft/pIif7saUEyVZS4gs5Jl8cdyCsxBXB1kg= Received: by 10.216.171.68 with SMTP id q46mr5280683wel.98.1300732501645; Mon, 21 Mar 2011 11:35:01 -0700 (PDT) MIME-Version: 1.0 Sender: shunyu.chang@gmail.com Received: by 10.216.153.149 with HTTP; Mon, 21 Mar 2011 11:34:41 -0700 (PDT) From: Jeremy Chang Date: Tue, 22 Mar 2011 02:34:41 +0800 X-Google-Sender-Auth: oPTW9JjWveFrHA6mKjlLF3KU7lU Message-ID: Subject: [PATCH android/device/linaro/common] Let vold mount sdcard partition To: linaro-dev@lists.linaro.org Cc: patches , Patrik Ryd , Alexander Sack 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 --- init.rc | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) 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 /