Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] udev: create /var/volatile/tmp to avoid dead link
@ 2013-04-23  4:31 Qi.Chen
  2013-04-23  4:31 ` [PATCH 1/1] " Qi.Chen
  0 siblings, 1 reply; 2+ messages in thread
From: Qi.Chen @ 2013-04-23  4:31 UTC (permalink / raw)
  To: openembedded-core; +Cc: qingtao.cao

From: Chen Qi <Qi.Chen@windriver.com>

The following changes since commit 361d686408b9a0b2ab2f1caf2b74adfe1ad1020c:

  elfutils: split libraries into separate packages (2013-04-22 14:45:04 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib ChenQi/udev-early-mount
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/udev-early-mount

Chen Qi (1):
  udev: create /var/volatile/tmp to avoid dead link

 meta/recipes-core/udev/udev/init |    1 +
 1 file changed, 1 insertion(+)

-- 
1.7.9.5




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] udev: create /var/volatile/tmp to avoid dead link
  2013-04-23  4:31 [PATCH 0/1] udev: create /var/volatile/tmp to avoid dead link Qi.Chen
@ 2013-04-23  4:31 ` Qi.Chen
  0 siblings, 0 replies; 2+ messages in thread
From: Qi.Chen @ 2013-04-23  4:31 UTC (permalink / raw)
  To: openembedded-core; +Cc: qingtao.cao

From: Chen Qi <Qi.Chen@windriver.com>

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>
---
 meta/recipes-core/udev/udev/init |    1 +
 1 file changed, 1 insertion(+)

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
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-23  4:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-23  4:31 [PATCH 0/1] udev: create /var/volatile/tmp to avoid dead link Qi.Chen
2013-04-23  4:31 ` [PATCH 1/1] " Qi.Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox