Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] busybox/mdev: Ensure /sys is mounted before using it
@ 2016-04-07  7:02 Khem Raj
  2016-04-07  9:50 ` Burton, Ross
  2016-04-07 17:34 ` Andreas Oberritter
  0 siblings, 2 replies; 8+ messages in thread
From: Khem Raj @ 2016-04-07  7:02 UTC (permalink / raw)
  To: openembedded-core

echo would fail if /sys is not mounted and boot would abort

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 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
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-04-08  1:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-07  7:02 [PATCH] busybox/mdev: Ensure /sys is mounted before using it Khem Raj
2016-04-07  9:50 ` Burton, Ross
2016-04-07 14:21   ` Khem Raj
2016-04-07 17:34 ` Andreas Oberritter
2016-04-07 19:01   ` Khem Raj
2016-04-07 23:46     ` Andreas Oberritter
2016-04-08  1:10       ` Khem Raj
2016-04-08  1:25         ` Andreas Oberritter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox