summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/udev
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2013-04-12 23:51:16 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-13 23:49:28 +0100
commitb378cb75609d7beade67321036788ea0845dd624 (patch)
tree4e1ec4c16ab72bc50769ba77ff26d5a23fdbcfdc /meta/recipes-core/udev
parent60651c1eb7c30747840fc42cdd895d3a82a293e1 (diff)
downloadpoky-b378cb75609d7beade67321036788ea0845dd624.tar.gz
udev: Update initscript to check for devtmpfs
This is needed because the udev_182 now requires devtmpfs and will not work correctly with out, so ensure that the kernel contains devtmpfs by checking /proc/filesystems. [YOCTO #4125] (From OE-Core rev: 4f85bb5254b3f4a9db8b419947d4bde424ce9617) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/udev')
-rw-r--r--meta/recipes-core/udev/udev/init8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 37b52312e2..2a95ab747d 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -35,6 +35,14 @@ case "$1" in
35 # propagate /dev from /sys 35 # propagate /dev from /sys
36 echo "Starting udev" 36 echo "Starting udev"
37 37
38 # Check for requireed devtmpfs before trying to start udev and
39 # mount a no-existant fs.
40 if ! grep -q devtmpfs /proc/filesystems
41 then
42 echo "Missing devtmpfs, which is required for udev to run";
43 echo "Halting..."
44 halt
45 fi
38 # mount the tmpfs on /dev, if not already done 46 # mount the tmpfs on /dev, if not already done
39 LANG=C awk '$2 == "/dev" && ($3 == "tmpfs" || $3 == "devtmpfs") { exit 1 }' /proc/mounts && { 47 LANG=C awk '$2 == "/dev" && ($3 == "tmpfs" || $3 == "devtmpfs") { exit 1 }' /proc/mounts && {
40 mount -n -o mode=0755 -t tmpfs none "/dev" 48 mount -n -o mode=0755 -t tmpfs none "/dev"