[OE-core] [PATCH] busybox/mdev: Ensure /sys is mounted before using it

Khem Raj raj.khem at gmail.com
Thu Apr 7 19:01:41 UTC 2016


> On Apr 7, 2016, at 10:34 AM, Andreas Oberritter <obi at opendreambox.org> wrote:
> 
> Hi Khem,
> 
> On 07.04.2016 09:02, Khem Raj wrote:
>> echo would fail if /sys is not mounted and boot would abort
> 
> are you sure about the dependency between echo and sysfs? It seems quite
> unlikely to me. I'd guess the real problem is mdev failing to start
> without syses.

real problem was missing mounting sysfs on /sys, but I wanted to keep the other
way of setting it instead of echo

> 
> Regards,
> Andreas
> 
> 
>> 
>> Signed-off-by: Khem Raj <raj.khem at 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
>> 
>> 
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160407/71dc590b/attachment-0002.sig>


More information about the Openembedded-core mailing list