From a5420ffa050fa9a3182a2f8464df124dc28c44d2 Mon Sep 17 00:00:00 2001 From: INSUN PYO Date: Fri, 19 Feb 2021 14:08:55 +0900 Subject: [PATCH] tizen: change mount option of root partion from RW to RO Change-Id: I60547b43b41a9f9c17673fd8d903357f5dcd8855 --- ramfs/init | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.34.1