From b8901336e72639342a1d784557043fa47a9d90ff Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 11 May 2016 10:35:19 -0700 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-core/busybox/files/mdev | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta/recipes-core/busybox') 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 -- cgit v1.2.3