From: Chen Qi Date: Tue, 23 Apr 2013 04:31:40 +0000 (+0800) Subject: udev: create /var/volatile/tmp to avoid dead link X-Git-Tag: rev_ivi_2015_02_04~12810 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43b6572171737ee888f71e8b6f5d3fab5cecea4f;p=scm%2Fbb%2Ftizen-distro.git 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 rev: 2f93c8466ca146c965585ea38210ddb5fb5754bd) Signed-off-by: Chen Qi Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init index 1f871da..cd87f50 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