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

Andreas Oberritter obi at opendreambox.org
Thu May 12 12:58:07 UTC 2016


Dear Khem,

On 11.05.2016 19:35, Khem Raj wrote:
> echo would fail if /sys is not mounted and boot would abort

this sentence still doesn't make sense (hint: /proc).

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
>  
> 




More information about the Openembedded-core mailing list