mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
67e1a5244d
commit
034790df8f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user