summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--device.mk3
-rw-r--r--init.tuna.rc7
2 files changed, 9 insertions, 1 deletions
diff --git a/device.mk b/device.mk
index 0abda5b..d3c3952 100644
--- a/device.mk
+++ b/device.mk
@@ -81,7 +81,8 @@ PRODUCT_PACKAGES += \
# Filesystem management tools
PRODUCT_PACKAGES += \
- make_ext4fs
+ make_ext4fs \
+ setup_fs
# XXX: should be including hd-phone-dalvik-heap.mk or something?
$(call inherit-product, frameworks/base/build/tablet-dalvik-heap.mk)
diff --git a/init.tuna.rc b/init.tuna.rc
index 5c78f88..5e3f7e2 100644
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -31,6 +31,13 @@ service pvrsrvinit /vendor/bin/pvrsrvinit
group root
oneshot
+# create filesystems if necessary
+service setup_fs /system/bin/setup_fs /dev/block/platform/omap/omap_hsmmc.0/by-name/cache /dev/block/platform/omap/omap_hsmmc.0/by-name/userdata
+ class core
+ user root
+ group root
+ oneshot
+
# create virtual SD card at /mnt/sdcard, based on the /data/media directory
# daemon will drop to user/group system/media_rw after initializing
# underlying files in /data/media will be created with user and group media_rw (1023)