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:37:58 +0100
commit9fde3037b7b52b0b2a877b8630105aec6176cc91 (patch)
treec68e58472be1750c3de1f966712bfc302a2d94f5 /meta
parent57f4f86567cab9ebea5514106102d9e183840eb2 (diff)
downloadpoky-9fde3037b7b52b0b2a877b8630105aec6176cc91.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