summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/udev/udev/udev-cache3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/udev/udev-cache b/meta/recipes-core/udev/udev/udev-cache
index ec07f50cc0..aaf1ddd1ac 100644
--- a/meta/recipes-core/udev/udev/udev-cache
+++ b/meta/recipes-core/udev/udev/udev-cache
@@ -26,7 +26,8 @@ fi
26 26
27if [ "$DEVCACHE" != "" -a -e /dev/shm/udev.cache ]; then 27if [ "$DEVCACHE" != "" -a -e /dev/shm/udev.cache ]; then
28 echo "Populating dev cache" 28 echo "Populating dev cache"
29 (cd /; tar cf "${DEVCACHE_TMP}" dev) 29 find /dev -xdev \( -type b -o -type c -o -type l \) | cut -c 2- \
30 | xargs tar cf "${DEVCACHE_TMP}" -T-
30 gzip < "${DEVCACHE_TMP}" > "$DEVCACHE" 31 gzip < "${DEVCACHE_TMP}" > "$DEVCACHE"
31 rm -f "${DEVCACHE_TMP}" 32 rm -f "${DEVCACHE_TMP}"
32 mv /dev/shm/udev.cache /etc/udev/cache.data 33 mv /dev/shm/udev.cache /etc/udev/cache.data