tuna: Add and install init.partitions.rc
Change-Id: I49a54d1fdbec98396314cbb3eca06e979e53445e
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
diff --git a/device.mk b/device.mk
index 3501de9..3215d28 100644
--- a/device.mk
+++ b/device.mk
@@ -63,7 +63,8 @@
PRODUCT_COPY_FILES += \
device/samsung/tuna/audio/audio_policy.conf:system/etc/audio_policy.conf \
- device/samsung/tuna/audio_effects.conf:system/vendor/etc/audio_effects.conf
+ device/samsung/tuna/audio_effects.conf:system/vendor/etc/audio_effects.conf \
+ device/samsung/tuna/init.partitions.rc:root/init.partitions.rc
PRODUCT_PACKAGES += \
tuna_hdcp_keys
diff --git a/init.partitions.rc b/init.partitions.rc
new file mode 100644
index 0000000..c994ff3
--- /dev/null
+++ b/init.partitions.rc
@@ -0,0 +1,7 @@
+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