diff options
author | Ken Sumrall <ksumrall@android.com> | 2012-04-12 14:38:39 -0700 |
---|---|---|
committer | Ken Sumrall <ksumrall@android.com> | 2012-05-01 13:21:42 -0700 |
commit | db6230de4e93ed798505192fad31063b2eae8ced (patch) | |
tree | 9af55eb57b23cf9ea6710221435b4f47295c9de9 | |
parent | ab79c91f62a03319a5d603b96e895feed3182c2a (diff) | |
download | device_samsung_crespo-db6230de4e93ed798505192fad31063b2eae8ced.zip device_samsung_crespo-db6230de4e93ed798505192fad31063b2eae8ced.tar.gz device_samsung_crespo-db6230de4e93ed798505192fad31063b2eae8ced.tar.bz2 |
Use the filesystem manager to mount and check filesystems
fs_mgr reads /fstab.<device> to determine what to mount and what to
check, and removes the details from the init.<device>.rc file.
Change-Id: I8692570f5f89e43cf484aab09000e4ed669c25b9
-rw-r--r-- | device_base.mk | 1 | ||||
-rw-r--r-- | fstab.herring | 9 | ||||
-rwxr-xr-x | init.herring.rc | 5 |
3 files changed, 11 insertions, 4 deletions
diff --git a/device_base.mk b/device_base.mk index 08e8cdc..968e09d 100644 --- a/device_base.mk +++ b/device_base.mk @@ -50,6 +50,7 @@ PRODUCT_COPY_FILES := \ PRODUCT_COPY_FILES += \ device/samsung/crespo/init.herring.rc:root/init.herring.rc \ device/samsung/crespo/init.herring.usb.rc:root/init.herring.usb.rc \ + device/samsung/crespo/fstab.herring:root/fstab.herring \ device/samsung/crespo/ueventd.herring.rc:root/ueventd.herring.rc # Prebuilt kl and kcm keymaps diff --git a/fstab.herring b/fstab.herring new file mode 100644 index 0000000..0eca316 --- /dev/null +++ b/fstab.herring @@ -0,0 +1,9 @@ +# Android fstab file. +#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags> +# The filesystem that contains the filesystem checker binary (typically /system) cannot +# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK + + +/dev/block/platform/s3c-sdhci.0/by-name/system /system ext4 ro wait +/dev/block/platform/s3c-sdhci.0/by-name/userdata /data ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait,encryptable=/efs/userdata_footer + diff --git a/init.herring.rc b/init.herring.rc index 2895a7c..4a1ee38 100755 --- a/init.herring.rc +++ b/init.herring.rc @@ -8,8 +8,6 @@ on boot setprop ro.radio.noril yes setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" - setprop ro.crypto.keyfile.userdata /efs/userdata_footer - # fake some battery state setprop status.battery.state Slow setprop status.battery.level 5 @@ -37,8 +35,7 @@ on fs mount yaffs2 mtd@efs /efs noatime nosuid nodev chmod 770 /efs/bluetooth chmod 770 /efs/imei - mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/system /system wait ro - mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata /data wait noatime nosuid nodev nomblk_io_submit + mount_all /fstab.herring export EXTERNAL_STORAGE /storage/sdcard0 mkdir /storage 0050 system sdcard_r |