[oe-commits] [openembedded-core] 47/67: busybox/mdev: Ensure /sys is mounted before using it
git at git.openembedded.org
git at git.openembedded.org
Thu May 12 10:57:51 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit f261ade677bcfc800ce0b9d2c884cce0279a7b5a
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Wed May 11 10:35:19 2016 -0700
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 at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-core/busybox/files/mdev | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/busybox/files/mdev b/meta/recipes-core/busybox/files/mdev
index 9625247..8c9c06e 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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list