summaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authorChirayu Desai <cdesai@cyanogenmod.org>2014-09-10 09:10:30 +0530
committerGerrit Code Review <gerrit@cyanogenmod.org>2014-09-15 11:34:22 +0000
commite8b59e0d4e92debe18148e114b9976fd2cc9c2dd (patch)
treeed26474bc346de381326cd9ec2e78841890632f2 /rootdir
parenta7adc6147573c296df8d3e8d28f684ecb682ba1c (diff)
init: Add setup_fs service for userdata
* Used for formatting data after unlock, as the userdata partition is zeroed out after unlock, but a filesystem isn't created. Change-Id: I17aba9ed9778431e48f9605d10a7fde8be9b7b86
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.qcom.rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc
index 00ac561..a6c45f2 100644
--- a/rootdir/init.qcom.rc
+++ b/rootdir/init.qcom.rc
@@ -593,6 +593,13 @@ service time_daemon /system/bin/time_daemon
user root
group root radio qcom_diag
+# create filesystem if necessary
+service setup_fs /system/bin/setup_fs /dev/block/platform/msm_sdcc.1/by-name/userdata
+ class core
+ user root
+ group root
+ oneshot
+
on property:init.svc.surfaceflinger=running
start ppd