summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorJohan Hovold <johan.hovold@lundinova.se>2012-12-18 18:46:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-19 17:55:00 +0000
commit632fefd108a7d16aa453afa4d3ebf4bc56ba6d4f (patch)
tree15f4023ce7465e14a122c0b8f31e1558d4273230 /meta/recipes-core
parent07ac3e153756d2799e7756104f38b44f2cc741ea (diff)
downloadpoky-632fefd108a7d16aa453afa4d3ebf4bc56ba6d4f.tar.gz
udev: fix failed /dev/shm mount
Since commit commit fbec192f6bc4 ("udev: Ensure tmpfs are mounted and volatile/run exists") all tmpfs-entries in fstab are mounted before udev starts using mount -a. If /dev/shm is among those entries, that mount will fail as the mount point has not yet been created: Starting udev mount: mounting tmpfs on /dev/shm failed: No such file or directory udevd[474]: starting version 182 Fix by restoring the old way of mounting /dev and mounting the remaining tmpfs-entries only after /dev/shm has been created. Also make sure that any errors are supressed for these tmpfs-mounts. Should any mount point not yet be present, that mount will be retried later during the boot process. (From OE-Core rev: f2ce905a92a2b5ff0a434249dc8468e3ee36aa63) Signed-off-by: Johan Hovold <johan.hovold@lundinova.se> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/udev/udev/init7
-rw-r--r--meta/recipes-core/udev/udev_182.bb2
2 files changed, 6 insertions, 3 deletions
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 74449feaaa..1934d11e49 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -37,10 +37,13 @@ export ACTION=add
37echo "Starting udev" 37echo "Starting udev"
38 38
39# mount the tmpfs on /dev, if not already done 39# mount the tmpfs on /dev, if not already done
40mount -a -t tmpfs 40LANG=C awk '$2 == "/dev" && ($3 == "tmpfs" || $3 == "devtmpfs") { exit 1 }' /proc/mounts && {
41mkdir -p /var/volatile/run 41 mount -n -o mode=0755 -t tmpfs none "/dev"
42}
42[ -e /dev/pts ] || mkdir -m 0755 /dev/pts 43[ -e /dev/pts ] || mkdir -m 0755 /dev/pts
43[ -e /dev/shm ] || mkdir -m 1777 /dev/shm 44[ -e /dev/shm ] || mkdir -m 1777 /dev/shm
45mount -a -t tmpfs 2>/dev/null
46mkdir -p /var/volatile/run
44 47
45# cache handling 48# cache handling
46if [ "$DEVCACHE" != "" ]; then 49if [ "$DEVCACHE" != "" ]; then
diff --git a/meta/recipes-core/udev/udev_182.bb b/meta/recipes-core/udev/udev_182.bb
index c41de9fef4..0ae9f8c6b6 100644
--- a/meta/recipes-core/udev/udev_182.bb
+++ b/meta/recipes-core/udev/udev_182.bb
@@ -1,6 +1,6 @@
1include udev.inc 1include udev.inc
2 2
3PR = "r2" 3PR = "r3"
4 4
5# module-init-tools from kmod_git will provide libkmod runtime 5# module-init-tools from kmod_git will provide libkmod runtime
6DEPENDS += "module-init-tools" 6DEPENDS += "module-init-tools"