Create /dev, /proc, and /sys directories before mounting 57/189657/2 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.021511 accepted/tizen/unified/20180928.080557 submit/tizen/20180927.030248 submit/tizen_5.0/20181101.000004
authorHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 19 Sep 2018 11:45:14 +0000 (20:45 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 19 Sep 2018 11:56:46 +0000 (20:56 +0900)
This is required in case that rootfs does not contain the directories.

Change-Id: I0bd0a09d52597bc6569de3b9c9e0f32a480b4661
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
scripts/init.sh

index 60aa787..9b68864 100755 (executable)
@@ -1,5 +1,4 @@
 #!/bin/sh
-
 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
@@ -87,7 +86,7 @@ then
 fi
 
 cd /sysroot
-mkdir -p ./initrd
+mkdir -p ./dev ./sys ./proc ./initrd
 /sbin/pivot_root . ./initrd
 /bin/mount -M ./initrd/dev /dev
 /bin/mount -M ./initrd/sys /sys