diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-04-23 12:31:40 +0800 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-05-20 16:06:11 +0100 |
commit | 78d44b0025a2fc117b67f8128385d0387955f01c (patch) | |
tree | c8e0ae1a5b0bcfaea800ca94d522a3990ebb37d3 /scripts/postinst-intercepts | |
parent | cdb8ccc8f9b4959e84d1ee071de29e8a54974c11 (diff) | |
download | openembedded-core-78d44b0025a2fc117b67f8128385d0387955f01c.tar.gz openembedded-core-78d44b0025a2fc117b67f8128385d0387955f01c.tar.bz2 openembedded-core-78d44b0025a2fc117b67f8128385d0387955f01c.zip |
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)
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 'scripts/postinst-intercepts')
0 files changed, 0 insertions, 0 deletions