diff options
author | Colin Cross <ccross@android.com> | 2010-04-09 12:26:06 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-04-13 20:06:03 -0700 |
commit | 31712beaf7de127a1249b909cdefffbc25fff076 (patch) | |
tree | 0fb628b0d0064450221c1765c33832da966e8145 /rootdir | |
parent | dc61c9cda5d1b9ec455ff4b26595f523a36557c8 (diff) | |
download | system_core-31712beaf7de127a1249b909cdefffbc25fff076.zip system_core-31712beaf7de127a1249b909cdefffbc25fff076.tar.gz system_core-31712beaf7de127a1249b909cdefffbc25fff076.tar.bz2 |
Move filesystem mounting into a new "fs" init level
Devices with non-MTD storage need to override the filesystem mounting
commands in init.rc. Moving them to a new "fs" init level allows a
custom init.<device>.rc to handle the mounting.
Change-Id: If0e655139b9734650fb798b6eb0a90e2241fc29b
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 63769f5..04e3960 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -80,13 +80,16 @@ loglevel 3 # 5.0 % write /dev/cpuctl/bg_non_interactive/cpu.shares 52 +on fs # mount mtd partitions # Mount /system rw first to give the filesystem a chance to save a checkpoint mount yaffs2 mtd@system /system mount yaffs2 mtd@system /system ro remount + mount yaffs2 mtd@userdata /data nosuid nodev + mount yaffs2 mtd@cache /cache nosuid nodev +on post-fs # We chown/chmod /data again so because mount is run as root + defaults - mount yaffs2 mtd@userdata /data nosuid nodev chown system system /data chmod 0771 /data @@ -110,7 +113,6 @@ loglevel 3 write /proc/apanic_console 1 # Same reason as /data above - mount yaffs2 mtd@cache /cache nosuid nodev chown system cache /cache chmod 0770 /cache |