]> code.ossystems Code Review - openembedded-core.git/commitdiff
udev-cache: Don't ignore error messages from cache extract
authorRichard Tollerton <rich.tollerton@ni.com>
Fri, 22 Aug 2014 21:30:53 +0000 (16:30 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Aug 2014 22:01:35 +0000 (23:01 +0100)
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@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/udev/udev/init

index 7b1a67684718b50647c15e2272adad27520e12a4..ce0a68c0fcf16340f58f77a58634a28b5b6c542b 100644 (file)
@@ -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