diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-04-23 12:31:40 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-28 12:03:49 +0100 |
commit | 2f93c8466ca146c965585ea38210ddb5fb5754bd (patch) | |
tree | fee0c73bb2b6a9b33e1de58b7a360cc78eadd661 /meta/recipes-core/udev | |
parent | f07298f0be121059b2d3ae154610754e92534658 (diff) | |
download | openembedded-core-contrib-2f93c8466ca146c965585ea38210ddb5fb5754bd.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]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/udev')
-rw-r--r-- | meta/recipes-core/udev/udev/init | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init index 1f871da9562..cd87f508321 100644 --- a/meta/recipes-core/udev/udev/init +++ b/meta/recipes-core/udev/udev/init @@ -51,6 +51,7 @@ case "$1" in [ -e /dev/shm ] || mkdir -m 1777 /dev/shm mount -a -t tmpfs 2>/dev/null mkdir -p /var/volatile/run + mkdir -p /var/volatile/tmp # cache handling if [ "$DEVCACHE" != "" ]; then |