diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-05-11 10:35:19 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-13 13:41:30 +0100 |
commit | ec8c9eb269bc1f6eda04b65cc900a0ca28feede6 (patch) | |
tree | ccd155866d27e8483f504eb63109c5ed876d1602 /meta/recipes-core/busybox/files | |
parent | 4eec0cb20952689195599d2449208fd4c8c526a3 (diff) | |
download | openembedded-core-contrib-ec8c9eb269bc1f6eda04b65cc900a0ca28feede6.tar.gz |
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>
Diffstat (limited to 'meta/recipes-core/busybox/files')
-rwxr-xr-x | meta/recipes-core/busybox/files/mdev | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-core/busybox/files/mdev b/meta/recipes-core/busybox/files/mdev index 96252477e0..8c9c06e96c 100755 --- a/meta/recipes-core/busybox/files/mdev +++ b/meta/recipes-core/busybox/files/mdev @@ -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 |