]> code.ossystems Code Review - openembedded-core.git/commitdiff
udev: skip mounting /dev on tmpfs if it is on devtmpfs
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 20 Dec 2011 14:01:21 +0000 (14:01 +0000)
committerSaul Wold <sgw@linux.intel.com>
Tue, 3 Jan 2012 04:26:25 +0000 (20:26 -0800)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta/recipes-core/udev/udev/init
meta/recipes-core/udev/udev_164.bb

index edc3c9a146741f82ab478e65c269504a853f87f7..d0d7e5d0e32871813e162fa76999504a9c276a78 100644 (file)
@@ -28,7 +28,7 @@ export ACTION=add
 echo -n "Starting udev"
 
 # mount the tmpfs on /dev, if not already done
-LANG=C awk "\$2 == \"/dev\" && \$4 == \"tmpfs\" { exit 1 }" /proc/mounts && {
+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
index 3e4e402749be6580471422f368db498e85315053..f952c907c1b8ebe1bccfbbf44492ae3f2b6a023d 100644 (file)
@@ -1,6 +1,6 @@
 include udev.inc
 
-PR = "r7"
+PR = "r8"
 
 SRC_URI += "file://udev-166-v4l1-1.patch"