All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denis@denix.org>
To: meta-arago@arago-project.org
Subject: [PATCH] base-files: pre-create /run symlink to point to /var/run
Date: Wed, 05 Feb 2014 12:17:00 -0500	[thread overview]
Message-ID: <1391620620-4241-1-git-send-email-denis@denix.org> (raw)

From: Denys Dmytriyenko <denys@ti.com>

Make it available on the first boot too, otherwise the first boot may fail
to automount SD card partitions. Normally, it gets created on the first
boot by volatiles init script and stays there on consecutive boots.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 .../recipes-core/base-files/base-files_3.0.14.bbappend        | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/meta-arago-distro/recipes-core/base-files/base-files_3.0.14.bbappend b/meta-arago-distro/recipes-core/base-files/base-files_3.0.14.bbappend
index c0ab069..4d831fd 100644
--- a/meta-arago-distro/recipes-core/base-files/base-files_3.0.14.bbappend
+++ b/meta-arago-distro/recipes-core/base-files/base-files_3.0.14.bbappend
@@ -1,4 +1,13 @@
 # look for files in this layer first
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PR_append = "-arago0"
+PR_append = "-arago1"
+
+# Pre-create /run symlink to point to /var/run at build time
+# This normally happens on first boot, but may be too late for automount,
+# which tries to create mount-points in /run
+# NOTE: This step is not required in Dora and up, due to reverse direction
+# of symlinking between /run and /var/run
+do_install_append () {
+	ln -sf /var/run ${D}/run
+}
-- 
1.8.3.2



             reply	other threads:[~2014-02-05 17:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05 17:17 Denys Dmytriyenko [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-02-06 19:07 [PATCH] base-files: pre-create /run symlink to point to /var/run Denys Dmytriyenko
2014-02-06 16:23 Denys Dmytriyenko
2014-02-06 16:21 Denys Dmytriyenko
2014-02-06 16:14 Denys Dmytriyenko
2014-02-06 16:10 Denys Dmytriyenko
2014-02-06 16:06 Denys Dmytriyenko
2014-02-05 17:32 Denys Dmytriyenko
2014-02-05 17:30 Denys Dmytriyenko
2014-02-05 17:17 Denys Dmytriyenko
2014-02-05 16:37 Denys Dmytriyenko
2014-02-05 17:16 ` Denys Dmytriyenko
2014-02-05 16:27 Denys Dmytriyenko
2014-01-31 20:09 Denys Dmytriyenko
2014-01-31 22:44 ` Cooper Jr., Franklin
2014-01-31 23:11   ` Denys Dmytriyenko

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=1391620620-4241-1-git-send-email-denis@denix.org \
    --to=denis@denix.org \
    --cc=meta-arago@arago-project.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.