From: Bill Pittman Date: Mon, 21 Jul 2014 16:53:46 +0000 (-0500) Subject: busybox: mdev: Use mdev.seq X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~33076 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b256653ae9ab2cf56b21cb82a8bd2a562397b27;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Ben Shelton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/busybox/files/mdev b/meta/recipes-core/busybox/files/mdev index f7ed1f3d675..c4447ef1602 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