busybox/mdev: Ensure /sys is mounted before using it
PATCH 1/1 busybox/mdev: Ensure /sys is mounted before using it
echo would fail if /sys is not mounted and boot would abort
--- meta/recipes-core/busybox/files/mdev | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-core/busybox/files/mdev +3 -1
@@ -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
Signature · 1 line
1.9.1
Quoted 2 lines · Khem Raj
+#sysctl -w kernel.hotplug=/sbin/mdev
Why add a commented line?
Ross
Quoted 7 lines · Ross
Quoted 2 lines · Khem Raj
+#sysctl -w kernel.hotplug=/sbin/mdev
Why add a commented line?
this is an alternative way to insert mdev to be hotplug when sysfs is not mounted.
Quoted 2 lines
Ross
Hi Khem,
Quoted 1 line · Khem Raj
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 sysfs.
Regards,
Andreas
Quoted 25 lines
Signed-off-by Khem Raj <[email protected]>--- meta/recipes-core/busybox/files/mdev | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/recipes-core/busybox/files/mdev +3
-1@@ -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
Quoted 11 lines · Andreas Oberritter
Hi Khem,
Quoted 1 line · Khem Raj
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
Quoted 36 lines
Regards,
AndreasQuoted 15 lines
Signed-off-by Khem Raj <[email protected]>---
meta/recipes-core/busybox/files/mdev | 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)meta/recipes-core/busybox/files/mdev +2
-1@@ -1,10 +1,12 @@ #!/bin/sh - +mount -t proc proc /proc +mount -t sysfs sysfs /sysQuoted 10 lines
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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 6 lines · Khem Raj
Quoted 6 lines · Andreas Oberritter
Hi Khem,
On 07.04.2016 09:02, Khem Raj wrote:
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
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
Note that I was referring to your commit message.
After a second look I see that you also mount /proc in your patch, and I guess that's what you meant to describe. Please update the commit message (and subject) to actually match your patch.
Regards,
Andreas
Quoted 38 lines
Quoted 37 lines
Regards,
AndreasQuoted 15 lines
Signed-off-by Khem Raj <[email protected]>---
meta/recipes-core/busybox/files/mdev | 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)meta/recipes-core/busybox/files/mdev +2
-1@@ -1,10 +1,12 @@ #!/bin/sh - +mount -t proc proc /proc +mount -t sysfs sysfs /sysQuoted 10 lines
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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 4 lines · Andreas Oberritter
Quoted 2 lines · Khem Raj
Quoted 2 lines
On Apr 7, 2016, at 10:34 AM, Andreas Oberritter <[email protected]>
Quoted 7 lines · wrote:
Quoted 7 lines
Quoted 7 lines
Hi Khem,
Quoted 1 line · Khem Raj
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
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
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
Quoted 7 lines
Quoted 1 line
way of setting it instead of echo
Note that I was referring to your commit message.
After a second look I see that you also mount /proc in your patch, and I guess that's what you meant to describe. Please update the commit message (and subject) to actually match your patch.
Whata not clear in patch subject
Quoted 12 lines
Regards,
AndreasQuoted 7 lines
Quoted 7 lines
Regards,
AndreasQuoted 1 line
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Review
Quoted 6 lines
Signed-off-by Khem Raj <[email protected]>---
meta/recipes-core/busybox/files/mdev | 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/meta/recipes-core/busybox/files/mdev
Quoted 26 lines
Quoted 25 lines
Quoted 24 lines
Quoted 8 lines
index 9625247..8c9c06e 100755
meta/recipes-core/busybox/files/mdev +2
-1@@ -1,10 +1,12 @@ #!/bin/sh - +mount -t proc proc /proc +mount -t sysfs sysfs /sysQuoted 10 lines
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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 23 lines · Khem Raj
Quoted 4 lines · On Apr 7, 2016 4:46 PM, "Andreas Oberritter" <[email protected]…
Quoted 2 lines · Khem Raj
Quoted 2 lines
On Apr 7, 2016, at 10:34 AM, Andreas Oberritter
Quoted 7 lines · <[email protected] <mailto:[email protected]>> wrote:
Quoted 7 lines
Quoted 7 lines
Hi Khem,
Quoted 1 line · Khem Raj
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
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
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
Quoted 2 lines
Quoted 1 line
way of setting it instead of echo
Quoted 7 lines
Quoted 5 lines
Note that I was referring to your commit message.
After a second look I see that you also mount /proc in your patch, and I guess that's what you meant to describe. Please update the commit message (and subject) to actually match your patch.
Whata not clear in patch subject
It doesn't mention /proc.
Quoted 48 lines
Quoted 13 lines
Regards,
AndreasQuoted 8 lines
Quoted 8 lines
Regards,
AndreasQuoted 2 lines
Signed-off-by Khem Raj <[email protected]<mailto:[email protected]>>
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Review
Quoted 5 lines
---
meta/recipes-core/busybox/files/mdev | 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0b/meta/recipes-core/busybox/files/mdev
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
index 9625247..8c9c06e 100755
meta/recipes-core/busybox/files/mdev +2
-1@@ -1,10 +1,12 @@ #!/bin/sh - +mount -t proc proc /proc +mount -t sysfs sysfs /sysmount -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/hotplugQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
mdev -s
--
_______________________________________________
Openembedded-core mailing list
[email protected]<mailto:[email protected]>
Quoted 3 lines
Quoted 2 lines