From 56de7a1263431819ff9a53dcd9e8e3306149ed99 Mon Sep 17 00:00:00 2001 From: Brian Swetland Date: Wed, 8 Sep 2010 15:06:45 -0700 Subject: remount / as read-only only on post-fs to allow per-target config of / Change-Id: Ia89dd2021e0f960201b4cee573227f0addd48431 --- rootdir/init.rc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rootdir/init.rc') diff --git a/rootdir/init.rc b/rootdir/init.rc index 1e3e2d2..78a5927 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -58,8 +58,6 @@ loglevel 3 mkdir /mnt/obb 0700 root system mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000 - mount rootfs rootfs / ro remount - write /proc/sys/kernel/panic_on_oops 1 write /proc/sys/kernel/hung_task_timeout_secs 0 write /proc/cpu/alignment 4 @@ -96,6 +94,9 @@ on fs mount yaffs2 mtd@cache /cache nosuid nodev on post-fs + # once everything is setup, no need to modify / + mount rootfs rootfs / ro remount + # We chown/chmod /data again so because mount is run as root + defaults chown system system /data chmod 0771 /data -- cgit v1.1