Create /sysroot and /opt at the mic stage, not runtime 36/250536/1 accepted/tizen/unified/20201230.121745 submit/tizen/20201230.014042
authorinsun.pyo <insun.pyo@samsung.com>
Tue, 29 Dec 2020 06:45:40 +0000 (15:45 +0900)
committerinsun.pyo <insun.pyo@samsung.com>
Tue, 29 Dec 2020 06:57:31 +0000 (15:57 +0900)
After applying squashfs,  "/" of ramdisk is read only.

Change-Id: I5453a2fff90623bec10d0980ee9a9eecbd8fd8df

data/initrd-file.list
scripts/init.sh

index a8fc00d6b8ac123a895979b554a69f3d9ab9b9aa..2316782fc63d253074328805c849f840ddba234c 100644 (file)
@@ -8,6 +8,8 @@ SYS_SKELDIR="
 /usr/bin
 /usr/sbin
 /usr/lib
+/sysroot
+/opt
 "
 
 DIR_LINKS="
index 3b82ba298016ef8ae5b76e2d2baa6df56e0e408f..e77336710131add6af99b4cbfbef24479bb833eb 100755 (executable)
@@ -5,9 +5,6 @@ mount -o nosuid,strictatime,mode=755 -t devtmpfs devtmpfs /dev
 mount -o nosuid,noexec,nodev -t sysfs sysfs /sys
 mount -o nosuid,noexec,nodev -t proc proc /proc
 
-/bin/mkdir /sysroot
-/bin/mkdir /opt
-
 ROOTFS=`/sbin/blkid -L rootfs`
 if [ x$ROOTFS = "x" ]
 then