summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/systemd/systemd/init6
-rw-r--r--meta/recipes-core/udev/udev/init6
-rw-r--r--meta/recipes-core/udev/udev/udev-cache4
3 files changed, 11 insertions, 5 deletions
diff --git a/meta/recipes-core/systemd/systemd/init b/meta/recipes-core/systemd/systemd/init
index 41c41366bd..47a142883c 100644
--- a/meta/recipes-core/systemd/systemd/init
+++ b/meta/recipes-core/systemd/systemd/init
@@ -59,8 +59,12 @@ case "$1" in
59 if [ "$READDATA" = "$VERSION$CMDLINE$DEVICES$ATAGS" ]; then 59 if [ "$READDATA" = "$VERSION$CMDLINE$DEVICES$ATAGS" ]; then
60 (cd /; tar xf $DEVCACHE > /dev/null 2>&1) 60 (cd /; tar xf $DEVCACHE > /dev/null 2>&1)
61 not_first_boot=1 61 not_first_boot=1
62 [ "$VERBOSE" != "no" ] && echo "udev: using cache file $DEVCACHE"
63 [ -e /dev/shm/udev.cache ] && rm -f /dev/shm/udev.cache
64 else
65 echo "$VERSION$CMDLINE$DEVICES$ATAGS" > /dev/shm/udev.cache
62 fi 66 fi
63 67 else
64 echo "$VERSION$CMDLINE$DEVICES$ATAGS" > /dev/shm/udev.cache 68 echo "$VERSION$CMDLINE$DEVICES$ATAGS" > /dev/shm/udev.cache
65 fi 69 fi
66 fi 70 fi
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 95f9c0355f..9b81700ba2 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -68,8 +68,12 @@ case "$1" in
68 if [ "$READDATA" = "$VERSION$CMDLINE$DEVICES$ATAGS" ]; then 68 if [ "$READDATA" = "$VERSION$CMDLINE$DEVICES$ATAGS" ]; then
69 (cd /; tar xf $DEVCACHE > /dev/null 2>&1) 69 (cd /; tar xf $DEVCACHE > /dev/null 2>&1)
70 not_first_boot=1 70 not_first_boot=1
71 [ "$VERBOSE" != "no" ] && echo "udev: using cache file $DEVCACHE"
72 [ -e /dev/shm/udev.cache ] && rm -f /dev/shm/udev.cache
73 else
74 echo "$VERSION$CMDLINE$DEVICES$ATAGS" > /dev/shm/udev.cache
71 fi 75 fi
72 76 else
73 echo "$VERSION$CMDLINE$DEVICES$ATAGS" > /dev/shm/udev.cache 77 echo "$VERSION$CMDLINE$DEVICES$ATAGS" > /dev/shm/udev.cache
74 fi 78 fi
75 fi 79 fi
diff --git a/meta/recipes-core/udev/udev/udev-cache b/meta/recipes-core/udev/udev/udev-cache
index 01fec6e96e..8a84fa9dc8 100644
--- a/meta/recipes-core/udev/udev/udev-cache
+++ b/meta/recipes-core/udev/udev/udev-cache
@@ -17,12 +17,10 @@ export TZ=/etc/localtime
17 17
18[ -f /etc/default/udev-cache ] && . /etc/default/udev-cache 18[ -f /etc/default/udev-cache ] && . /etc/default/udev-cache
19 19
20if [ "$DEVCACHE" != "" ]; then 20if [ "$DEVCACHE" != "" -a -e /dev/shm/udev.cache ]; then
21 echo "Populating dev cache" 21 echo "Populating dev cache"
22 (cd /; tar cf "$DEVCACHE" dev) 22 (cd /; tar cf "$DEVCACHE" dev)
23 mv /dev/shm/udev.cache /etc/udev/cache.data 23 mv /dev/shm/udev.cache /etc/udev/cache.data
24else
25 rm -f /dev/shm/udev.cache
26fi 24fi
27 25
28exit 0 26exit 0