summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINSUN PYO <insun.pyo@samsung.com>2021-02-19 14:08:55 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2021-02-24 06:41:44 +0000
commita5420ffa050fa9a3182a2f8464df124dc28c44d2 (patch)
treeafe815b8830a8e368a9ee33587e402bc2b24f24f
parent0068f8cfaf7e7a390ff7508fe7f6d49793872c68 (diff)
downloademulator-kernel-a5420ffa050fa9a3182a2f8464df124dc28c44d2.tar.gz
emulator-kernel-a5420ffa050fa9a3182a2f8464df124dc28c44d2.tar.bz2
emulator-kernel-a5420ffa050fa9a3182a2f8464df124dc28c44d2.zip
tizen: change mount option of root partion from RW to RO
Change-Id: I60547b43b41a9f9c17673fd8d903357f5dcd8855
-rw-r--r--ramfs/init2
1 files changed, 2 insertions, 0 deletions
diff --git a/ramfs/init b/ramfs/init
index 593cd04d3045..a8f52a29984f 100644
--- a/ramfs/init
+++ b/ramfs/init
@@ -111,4 +111,6 @@ fi
/bin/busybox mkdir -p $NEW_ROOT/sys
/bin/busybox mount -t sysfs sys $NEW_ROOT/sys
+/bin/busybox mount -o remount,ro $NEW_ROOT
+
exec /bin/busybox switch_root -c /dev/console $NEW_ROOT $INIT