Patchwork [1/1] udev: Fix udevd launch issue after system second boot

login
register
mail settings
Submitter Dongxiao Xu
Date June 9, 2011, 1:08 a.m.
Message ID <e3cc91a222b0bdf0fe6c5cf6c8f43dfbf806f83b.1307581528.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/5581/
State New, archived
Headers show

Comments

Dongxiao Xu - June 9, 2011, 1:08 a.m.
"grep" command will return 1 if nothing is grepped, which will cause
the udevd daemon not working correctly.

This fixes [YOCTO #1146]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 meta/recipes-core/udev/udev-164/init |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-core/udev/udev-164/init b/meta/recipes-core/udev/udev-164/init
index 1a8fca5..9ce95ee 100644
--- a/meta/recipes-core/udev/udev-164/init
+++ b/meta/recipes-core/udev/udev-164/init
@@ -35,7 +35,7 @@  LANG=C awk "\$2 == \"/dev\" && \$4 == \"tmpfs\" { exit 1 }" /proc/mounts && {
 }
 
 if [ -e /etc/dev.tar ]; then
-	(cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp')
+	(cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp' || true)
 	not_first_boot=1
 fi