filesystem: mount devtmpfs if not already mounted.

This commit is contained in:
Ricardo Martins 2015-02-08 15:50:41 +00:00
parent 0456bd2193
commit bbbdb9d54e

View File

@ -14,6 +14,10 @@ fi
sysinit()
{
if ! [ -c /dev/null ]; then
mount -t devtmpfs devtmpfs /dev
fi
if [ -f /.reboot ]; then
mount -t proc proc /proc
mount -o remount,rw /
@ -35,10 +39,7 @@ sysinit()
echo /sbin/mdev > /proc/sys/kernel/hotplug &&
# Update ld cache, populate /dev.
# mount -o remount,rw / &&
/sbin/mdev -s &&
# /sbin/ldconfig &&
# mount -o remount,ro / &&
# Set minimum free kbytes.
echo "$cfg_min_free_kbytes" > /proc/sys/vm/min_free_kbytes &&