[oe-commits] Bill Pittman : busybox: mdev: Use mdev.seq

git at git.openembedded.org git at git.openembedded.org
Mon Jul 21 18:25:16 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 1d49af68e3ca0b7a7bf80145ee7c9e01029b4516
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1d49af68e3ca0b7a7bf80145ee7c9e01029b4516

Author: Bill Pittman <bill.pittman at ni.com>
Date:   Mon Jul 21 11:53:46 2014 -0500

busybox: mdev: Use mdev.seq

/dev/mdev.seq exists to synchronize concurrently running instances of
mdev and to ensure that they execute in the proper order.  Without this
synchronization, it is possible to have inconsistent mount points, to
leak device nodes, or to have a node erroneously removed in rapid
hotplug scenarios.

Enable the use of mdev.seq by creating an empty /dev/mdev.seq at boot.

Signed-off-by: Richard Tollerton <rich.tollerton at ni.com>
Signed-off-by: Ben Shelton <ben.shelton at ni.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-core/busybox/files/mdev | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/busybox/files/mdev b/meta/recipes-core/busybox/files/mdev
index f7ed1f3..c4447ef 100755
--- a/meta/recipes-core/busybox/files/mdev
+++ b/meta/recipes-core/busybox/files/mdev
@@ -4,5 +4,6 @@ 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
 echo "/sbin/mdev" > /proc/sys/kernel/hotplug
 mdev -s



More information about the Openembedded-commits mailing list