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:40:52 +0100 |
commit | b8901336e72639342a1d784557043fa47a9d90ff (patch) | |
tree | d361e5a2417e02a3eecab4bb1422fb722fc2ea8b /meta/recipes-core/busybox | |
parent | d3eb2de1b522280d6a156319d54e59d85d59452b (diff) | |
download | openembedded-core-b8901336e72639342a1d784557043fa47a9d90ff.tar.gz openembedded-core-b8901336e72639342a1d784557043fa47a9d90ff.tar.bz2 openembedded-core-b8901336e72639342a1d784557043fa47a9d90ff.zip |
busybox/mdev: Ensure /sys is mounted before using it
echo would fail if /sys is not mounted and boot would abort
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')
-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 |