All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hongxu Jia <hongxu.jia@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 4/6] udev: fix invoking pmount failed based on sysvinit
Date: Fri, 12 Jul 2013 17:29:28 +0800	[thread overview]
Message-ID: <158a039e2de8e6e5053891aa64c6e864cae0b34b.1373599041.git.hongxu.jia@windriver.com> (raw)
In-Reply-To: <cover.1373599041.git.hongxu.jia@windriver.com>

The pmount is invoked in the udev's mount.sh script, and it needs the
existence of `/var/lock', `/var/lock' is symlinked to `/run/lock'.

When the system is based on sysvinit, `/run/lock' is created by populate-
volatile.sh, if the udev service starts before populate-volatile.sh starts,
`/var/lock' will be a invalid link.

Create `/run/lock' directory at udev startup to avoid this invalid link problem.

Signed-off-by: Hongxu Jia <hongxu.jia@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 d90d446..8e9f3f8 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -53,6 +53,7 @@ case "$1" in
     [ -e /dev/shm ] || mkdir -m 1777 /dev/shm
     mount -a -t tmpfs 2>/dev/null
     mkdir -p /var/volatile/tmp
+    mkdir -p /run/lock
 
     # Cache handling.
     # A list of files which are used as a criteria to judge whether the udev cache could be reused.
-- 
1.8.1.2



  parent reply	other threads:[~2013-07-12  9:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-12  9:29 [PATCH 0/6] fix xuser write to usb storage failed Hongxu Jia
2013-07-12  9:29 ` [PATCH 1/6] pmount: add version 0.9.23 Hongxu Jia
2013-07-12  9:29 ` [PATCH 2/6] atom-pc:fix xuser write to usb storage failed Hongxu Jia
2013-07-15  7:14   ` Saul Wold
2013-07-15  7:42     ` Hongxu Jia
2013-07-12  9:29 ` [PATCH 3/6] udev-extraconf:fix " Hongxu Jia
2013-07-12  9:29 ` Hongxu Jia [this message]
2013-07-12  9:29 ` [PATCH 5/6] pmount: allow users in disk group to perform pmount/pumount Hongxu Jia
2013-07-12  9:29 ` [PATCH 6/6] xuser-account: add xuser to disk group Hongxu Jia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=158a039e2de8e6e5053891aa64c6e864cae0b34b.1373599041.git.hongxu.jia@windriver.com \
    --to=hongxu.jia@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.