This is required in case that rootfs does not contain the directories.
Change-Id: I0bd0a09d52597bc6569de3b9c9e0f32a480b4661
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
#!/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
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