diff options
author | Saul Wold <sgw@linux.intel.com> | 2013-04-12 23:51:16 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-13 23:44:08 +0100 |
commit | 4f85bb5254b3f4a9db8b419947d4bde424ce9617 (patch) | |
tree | 1962145e389b2526fc66f75bcc1e5aa1371b2adb /meta/recipes-core/udev | |
parent | ce1d262ea36da9a9fdeeefc0ddc69833801d4d2d (diff) | |
download | openembedded-core-contrib-4f85bb5254b3f4a9db8b419947d4bde424ce9617.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]
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/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 37b52312e24..2a95ab747d5 100644 --- a/meta/recipes-core/udev/udev/init +++ b/meta/recipes-core/udev/udev/init @@ -35,6 +35,14 @@ case "$1" in # propagate /dev from /sys echo "Starting udev" + # Check for requireed devtmpfs before trying to start udev and + # mount a no-existant fs. + if ! grep -q devtmpfs /proc/filesystems + then + echo "Missing devtmpfs, which is required for udev to run"; + echo "Halting..." + halt + fi # 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" |