diff options
author | Bill Pittman <bill.pittman@ni.com> | 2014-07-21 11:53:46 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-23 21:59:13 +0100 |
commit | 034790df8f4ca257c631de292dc003aee8e26231 (patch) | |
tree | c601ed267564de700dfa14d93a23962d4534ef6a /meta/recipes-core | |
parent | 67e1a5244dd86f89e06ad65d02686bb25c513380 (diff) | |
download | poky-034790df8f4ca257c631de292dc003aee8e26231.tar.gz |
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.
(From OE-Core rev: 3b256653ae9ab2cf56b21cb82a8bd2a562397b27)
Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rwxr-xr-x | meta/recipes-core/busybox/files/mdev | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/files/mdev b/meta/recipes-core/busybox/files/mdev index f7ed1f3d67..c4447ef160 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 | |||
4 | mkdir /dev/pts /dev/shm | 4 | mkdir /dev/pts /dev/shm |
5 | chmod 777 /dev/shm | 5 | chmod 777 /dev/shm |
6 | mount -t devpts devpts /dev/pts | 6 | mount -t devpts devpts /dev/pts |
7 | touch /dev/mdev.seq | ||
7 | echo "/sbin/mdev" > /proc/sys/kernel/hotplug | 8 | echo "/sbin/mdev" > /proc/sys/kernel/hotplug |
8 | mdev -s | 9 | mdev -s |