1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 05:29:32 +00:00

udev: ensure /dev/pts and /dev/shm does exists

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Otavio Salvador
2011-12-27 21:12:07 +00:00
committed by Richard Purdie
parent f51ecaf349
commit 8178e63649
+3 -2
View File
@@ -30,9 +30,10 @@ echo "Starting udev"
# mount the tmpfs on /dev, if not already done
LANG=C awk '$2 == "/dev" && ($3 == "tmpfs" || $3 == "devtmpfs") { exit 1 }' /proc/mounts && {
mount -n -o mode=0755 -t tmpfs none "/dev"
mkdir -m 0755 /dev/pts
mkdir -m 1777 /dev/shm
}
[ -e /dev/pts ] || mkdir -m 0755 /dev/pts
[ -e /dev/shm ] || mkdir -m 1777 /dev/shm
if [ -e /etc/dev.tar ]; then
(cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp' || true)