From 155a10287bbcac583d95325ab2a7b09e04bb4b90 Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Thu, 9 Jun 2011 08:55:14 +0800 Subject: udev: Fix udevd launch issue after system second boot "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 --- meta/recipes-core/udev/udev-164/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/udev/udev-164/init b/meta/recipes-core/udev/udev-164/init index 1a8fca5747..9ce95ee4c2 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 -- cgit v1.2.3