Patchwork [3/6] systemd: do not create symbolic link from /run to /var/run

login
register
mail settings
Submitter Jonathan Liu
Date May 26, 2013, 11:13 a.m.
Message ID <1369566786-20341-4-git-send-email-net147@gmail.com>
Download mbox | patch
Permalink /patch/50535/
State Accepted
Commit 93107a133137b7aa5aebac086d20cc1b22d168c0
Headers show

Comments

Jonathan Liu - May 26, 2013, 11:13 a.m.
The /run directory already exists as a tmpfs with /var/run as a symbolic
link pointing to /run.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta/recipes-core/systemd/systemd/init | 3 ---
 1 file changed, 3 deletions(-)

Patch

diff --git a/meta/recipes-core/systemd/systemd/init b/meta/recipes-core/systemd/systemd/init
index a42e732..7e67a50 100644
--- a/meta/recipes-core/systemd/systemd/init
+++ b/meta/recipes-core/systemd/systemd/init
@@ -42,9 +42,6 @@  case "$1" in
     [ -e /dev/pts ] || mkdir -m 0755 /dev/pts
     [ -e /dev/shm ] || mkdir -m 1777 /dev/shm
     mount -a -t tmpfs 2>/dev/null
-    if [ ! -e /run ]; then
-        ln -s /var/run /run
-    fi
 
     # cache handling
     if [ "$DEVCACHE" != "" ]; then