diff options
author | Richard Tollerton <rich.tollerton@ni.com> | 2014-08-22 16:30:51 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-23 23:01:59 +0100 |
commit | 79f5a3bc584d13fcf12eed0f47657dd4e51ac781 (patch) | |
tree | 046514cdda9625c1b822c3c7eba0235d8b9b5d7e | |
parent | 4f597a81f3e8b84c9e4444b002d5b3eb964ede2e (diff) | |
download | poky-79f5a3bc584d13fcf12eed0f47657dd4e51ac781.tar.gz |
udev-cache: strip timestamps on extract
Under normal udev operation, device nodes are obviously timestamped
based on the system time at current boot. However, when using
udev-cache, they are timestamped from a previous boot.
The existence of machines lacking RTCs makes this more than a cosmetic
issue: if the current time is set further on in the boot, so that the
system time is still 1970 by the time the cache is extracted, tar will
print a timestamp warning for every extracted file (potentially hundreds
of them).
To fix, use -m on extract.
If using busybox `tar`, this commit requires
CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y.
(From OE-Core rev: b31f8f1f053cdfa9428e3f667c05e7e2c600061e)
Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/udev/udev/init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init index a442c74f5c..7b1a676847 100644 --- a/meta/recipes-core/udev/udev/init +++ b/meta/recipes-core/udev/udev/init | |||
@@ -69,7 +69,7 @@ case "$1" in | |||
69 | readfiles /etc/udev/cache.data | 69 | readfiles /etc/udev/cache.data |
70 | OLDDATA="$READDATA" | 70 | OLDDATA="$READDATA" |
71 | if [ "$OLDDATA" = "$NEWDATA" ]; then | 71 | if [ "$OLDDATA" = "$NEWDATA" ]; then |
72 | (cd /; tar xf $DEVCACHE > /dev/null 2>&1) | 72 | (cd /; tar xmf $DEVCACHE > /dev/null 2>&1) |
73 | not_first_boot=1 | 73 | not_first_boot=1 |
74 | [ "$VERBOSE" != "no" ] && echo "udev: using cache file $DEVCACHE" | 74 | [ "$VERBOSE" != "no" ] && echo "udev: using cache file $DEVCACHE" |
75 | [ -e /dev/shm/udev.cache ] && rm -f /dev/shm/udev.cache | 75 | [ -e /dev/shm/udev.cache ] && rm -f /dev/shm/udev.cache |