summaryrefslogtreecommitdiff
path: root/recipes/udev/udev-141
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-01-12 14:48:59 +0100
committerKoen Kooi <koen@openembedded.org>2010-01-14 14:50:38 +0100
commit2b835db69e6b838fa8628dd85b11b4f930d5f5f9 (patch)
treee2d47a453a8d94eafed614426365c7d200f08c27 /recipes/udev/udev-141
parentc7fea056f9bd10d6bc04379a770897fccc3b35fd (diff)
udev 141: move creation of /etc/dev.tar to after checkroot
* / isn't always mounted rw when udev runs, so lets create /etc/dev.tar after checkroot has run Acked-by: Graeme Gregory <dp@xora.org.uk> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Diffstat (limited to 'recipes/udev/udev-141')
-rw-r--r--recipes/udev/udev-141/cache18
-rw-r--r--recipes/udev/udev-141/init8
2 files changed, 18 insertions, 8 deletions
diff --git a/recipes/udev/udev-141/cache b/recipes/udev/udev-141/cache
new file mode 100644
index 0000000000..4db1466817
--- /dev/null
+++ b/recipes/udev/udev-141/cache
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+export TZ=/etc/localtime
+
+[ -f /etc/default/udev ] && . /etc/default/udev
+
+echo "Caching udev devnodes"
+
+ if [ "$DEVCACHE" != "" ]; then
+ echo -n "Populating dev cache"
+ (cd /; tar cf $DEVCACHE dev)
+ mv /tmp/uname /etc/udev/saved.uname
+ mv /tmp/cmdline /etc/udev/saved.cmdline
+ mv /tmp/atags /etc/udev/saved.atags
+ echo
+ fi
+
+exit 0
diff --git a/recipes/udev/udev-141/init b/recipes/udev/udev-141/init
index a0bdf4050a..24ca9d874d 100644
--- a/recipes/udev/udev-141/init
+++ b/recipes/udev/udev-141/init
@@ -68,14 +68,6 @@ kill_udevd > "/dev/null" 2>&1
else
/sbin/udevadm trigger
/sbin/udevadm settle
- if [ "$DEVCACHE" != "" ]; then
- echo -n "Populating dev cache"
- (cd /; tar cf $DEVCACHE dev)
- mv /tmp/uname /etc/udev/saved.uname
- mv /tmp/cmdline /etc/udev/saved.cmdline
- mv /tmp/atags /etc/udev/saved.atags
- echo
- fi
fi
exit 0