diff options
-rw-r--r-- | meta/recipes-core/udev/udev/init | 8 |
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" |