Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] udev: Update initscript to check for devtmpfs
@ 2013-04-13  6:51 Saul Wold
  2013-04-14 21:37 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Saul Wold @ 2013-04-13  6:51 UTC (permalink / raw)
  To: openembedded-core

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>
---
 meta/recipes-core/udev/udev/init | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 37b5231..2a95ab7 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"
-- 
1.8.0.2




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] udev: Update initscript to check for devtmpfs
  2013-04-13  6:51 [PATCH] udev: Update initscript to check for devtmpfs Saul Wold
@ 2013-04-14 21:37 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2013-04-14 21:37 UTC (permalink / raw)
  To: Saul Wold; +Cc: openembedded-core@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 1534 bytes --]

You could also add some more text on how to enable it for the clueless

On Friday, April 12, 2013, Saul Wold <sgw@linux.intel.com> wrote:
> 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>
> ---
>  meta/recipes-core/udev/udev/init | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/meta/recipes-core/udev/udev/init
b/meta/recipes-core/udev/udev/init
> index 37b5231..2a95ab7 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"
> --
> 1.8.0.2
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>

[-- Attachment #2: Type: text/html, Size: 2125 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-14 21:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-13  6:51 [PATCH] udev: Update initscript to check for devtmpfs Saul Wold
2013-04-14 21:37 ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox