Patchwork [5/6] udev: do not create /var/volatile/run in init script

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

Comments

Jonathan Liu - May 26, 2013, 11:13 a.m.
Previously in udev init, /var/volatile/run had to be created after
mounting all tmpfs filesystems so that udevd can write to /var/run
(a symbolic link to /var/volatile/run). This is because udev is
started before populate-volatile.sh.

Now that /var/run is a symbolic link to /run (a tmpfs filesystem),
/var/volatile/run doesn't need to be created anymore.

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

Patch

diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index cd87f50..95f9c03 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -50,7 +50,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
-    mkdir -p /var/volatile/run
     mkdir -p /var/volatile/tmp
 
     # cache handling