From: INSUN PYO Date: Fri, 19 Feb 2021 05:08:55 +0000 (+0900) Subject: tizen: change mount option of root partion from RW to RO X-Git-Tag: submit/tizen_studio_4.5_p6.5/20220111.085032~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5420ffa050fa9a3182a2f8464df124dc28c44d2;p=sdk%2Femulator%2Femulator-kernel.git tizen: change mount option of root partion from RW to RO Change-Id: I60547b43b41a9f9c17673fd8d903357f5dcd8855 --- 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