busybox/mdev: Ensure /sys is mounted before using it
echo would fail if /sys is not mounted and boot would abort (From OE-Core rev: b8901336e72639342a1d784557043fa47a9d90ff) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
4eec0cb209
commit
ec8c9eb269
|
@ -1,10 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
mount -t proc proc /proc
|
||||
mount -t sysfs sysfs /sys
|
||||
mount -t tmpfs tmpfs /dev -o size=64k,mode=0755
|
||||
mkdir /dev/pts /dev/shm
|
||||
chmod 777 /dev/shm
|
||||
mount -t devpts devpts /dev/pts
|
||||
touch /dev/mdev.seq
|
||||
#sysctl -w kernel.hotplug=/sbin/mdev
|
||||
echo "/sbin/mdev" > /proc/sys/kernel/hotplug
|
||||
mdev -s
|
||||
|
||||
|
|
Loading…
Reference in New Issue