summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-04-23 12:31:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-22 17:13:54 +0100
commit1fee9dea86c7a5ce7902067818e83a1c4778ef95 (patch)
treebc210eda2b99a6f27baa914e8a6b3d062556cd5c /meta/recipes-core
parent18c3a2c016af6af0f6f307b3b77155a26e1c5da2 (diff)
downloadpoky-1fee9dea86c7a5ce7902067818e83a1c4778ef95.tar.gz
udev: create /var/volatile/tmp to avoid dead link
If it's not first boot, /tmp has already been symlinked to /var/volatile/tmp. But the udev service starts before populate-volatile.sh starts. This leads to a dead link at /tmp. As a result, trying to create any file under /tmp will fail. If a USB is plugged in before the populate-volatile.sh script starts, the /tmp/.automount-$name file will not be created correctly. As a result, when the USB is unplugged, the /media/$name directory is not removed. So we create /var/volatile/tmp directory in the udev script to avoid this dead link problem. [YOCTO #3404] (From OE-Core master rev: 2f93c8466ca146c965585ea38210ddb5fb5754bd) (From OE-Core rev: 78d44b0025a2fc117b67f8128385d0387955f01c) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/udev/udev/init1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 1f871da956..cd87f50832 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -51,6 +51,7 @@ case "$1" in
51 [ -e /dev/shm ] || mkdir -m 1777 /dev/shm 51 [ -e /dev/shm ] || mkdir -m 1777 /dev/shm
52 mount -a -t tmpfs 2>/dev/null 52 mount -a -t tmpfs 2>/dev/null
53 mkdir -p /var/volatile/run 53 mkdir -p /var/volatile/run
54 mkdir -p /var/volatile/tmp
54 55
55 # cache handling 56 # cache handling
56 if [ "$DEVCACHE" != "" ]; then 57 if [ "$DEVCACHE" != "" ]; then