From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.dream-property.net (mail.dream-property.net [82.149.226.172]) by mail.openembedded.org (Postfix) with ESMTP id BC5186014F for ; Thu, 12 May 2016 12:58:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.dream-property.net (Postfix) with ESMTP id 47252314232D for ; Thu, 12 May 2016 14:58:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.dream-property.net Received: from mail.dream-property.net ([127.0.0.1]) by localhost (mail.dream-property.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 434VLycIWxsI for ; Thu, 12 May 2016 14:58:09 +0200 (CEST) Received: from [172.22.22.61] (55d47763.access.ecotel.net [85.212.119.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.dream-property.net (Postfix) with ESMTPSA id 02F5831422D5 for ; Thu, 12 May 2016 14:58:08 +0200 (CEST) To: openembedded-core@lists.openembedded.org References: <2e51e9b5fb3911436afc1becd5feb9351b896fa4.1462987863.git.raj.khem@gmail.com> <8119a147b7f487ed489f90ad444ee15856cb35a7.1462987863.git.raj.khem@gmail.com> From: Andreas Oberritter X-Enigmail-Draft-Status: N1110 Message-ID: <57347DDF.3070103@opendreambox.org> Date: Thu, 12 May 2016 14:58:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <8119a147b7f487ed489f90ad444ee15856cb35a7.1462987863.git.raj.khem@gmail.com> Subject: Re: [PATCH 16/42] busybox/mdev: Ensure /sys is mounted before using it X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2016 12:58:12 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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 > --- > 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 > >