[oe-commits] Richard Tollerton : udev-cache: Don' t ignore error messages from cache extract
git at git.openembedded.org
git at git.openembedded.org
Sat Aug 23 22:02:25 UTC 2014
Module: openembedded-core.git
Branch: master
Commit: 09089962be353280201ba3899fd5ef9cc3c0ba32
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=09089962be353280201ba3899fd5ef9cc3c0ba32
Author: Richard Tollerton <rich.tollerton at ni.com>
Date: Fri Aug 22 16:30:53 2014 -0500
udev-cache: Don't ignore error messages from cache extract
Previous changes should obviate all known spurious errors coming out of
tar. Since real extraction failures can and will occur, stop redirecting
stdout/stderr to /dev/null.
Take this opportunity to also remove an unnecessary subshell.
Signed-off-by: Richard Tollerton <rich.tollerton at ni.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-core/udev/udev/init | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 7b1a676..ce0a68c 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -69,7 +69,7 @@ case "$1" in
readfiles /etc/udev/cache.data
OLDDATA="$READDATA"
if [ "$OLDDATA" = "$NEWDATA" ]; then
- (cd /; tar xmf $DEVCACHE > /dev/null 2>&1)
+ tar xmf $DEVCACHE -C / -m
not_first_boot=1
[ "$VERBOSE" != "no" ] && echo "udev: using cache file $DEVCACHE"
[ -e /dev/shm/udev.cache ] && rm -f /dev/shm/udev.cache
More information about the Openembedded-commits
mailing list