summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-17 22:38:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-18 00:38:02 +0100
commita8ddc5a9c26b43c08f8fb9aedbc73583b35491c8 (patch)
tree6020eeab977c9cc277ea847febd0540b0514c8e4 /meta
parent12c0a1810c3dd11ee6feef64d93cd12a414418d3 (diff)
downloadpoky-a8ddc5a9c26b43c08f8fb9aedbc73583b35491c8.tar.gz
systemd: Fix udevd init script so sysvinit in systemd mode works
Commit http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f76d4b3549ca220fa4bf84db2756ab45e11d06a3 moved volatiles handling for /run to the udev code only. This breaks sysvinit+systemd combined systems when building sysvinit images. This patch hacks the udevd init script in systemd to provide the missing symlink allowing the sysvinit images built with udevd from systemd to work correctly. (From OE-Core rev: 6c6e5dc0baccd0904f785b1f80f39b5f530779cf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/systemd/systemd/init3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/init b/meta/recipes-core/systemd/systemd/init
index 32a474d72d..ac56ccaa72 100644
--- a/meta/recipes-core/systemd/systemd/init
+++ b/meta/recipes-core/systemd/systemd/init
@@ -43,6 +43,9 @@ case "$1" in
43 [ -e /dev/shm ] || mkdir -m 1777 /dev/shm 43 [ -e /dev/shm ] || mkdir -m 1777 /dev/shm
44 mount -a -t tmpfs 2>/dev/null 44 mount -a -t tmpfs 2>/dev/null
45 mkdir -p /var/volatile/run 45 mkdir -p /var/volatile/run
46 if [ ! -e /run ]; then
47 ln -s /var/run /run
48 fi
46 49
47 # cache handling 50 # cache handling
48 if [ "$DEVCACHE" != "" ]; then 51 if [ "$DEVCACHE" != "" ]; then