Skip to contentSkip to conversation

base-files: pre-create /run symlink to point to /var/run

PATCH New Denys Dmytriyenko 1 participant 1 message Feb 5, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 base-files: pre-create /run symlink to point to /var/run

From: Denys Dmytriyenko <[email protected]>

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.

---
 .../recipes-core/base-files/base-files_3.0.14.bbappend        | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
meta-arago-distro/recipes-core/base-files/base-files_3.0.14.bbappend +10 -1
index c0ab069..4d831fd 100644
@@ -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
+}
Signature · 1 line
1.8.3.2