diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-17 22:38:11 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-18 00:10:32 +0100 |
commit | 6c6e5dc0baccd0904f785b1f80f39b5f530779cf (patch) | |
tree | 7a6fcef4c1fccf50eadc4bf153427cb68197c97e /meta | |
parent | d394d27b66cbeb4e57017d2a49605243586477ac (diff) | |
download | openembedded-core-6c6e5dc0baccd0904f785b1f80f39b5f530779cf.tar.gz openembedded-core-6c6e5dc0baccd0904f785b1f80f39b5f530779cf.tar.bz2 openembedded-core-6c6e5dc0baccd0904f785b1f80f39b5f530779cf.zip |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/systemd/systemd/init | 3 |
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 [ -e /dev/shm ] || mkdir -m 1777 /dev/shm mount -a -t tmpfs 2>/dev/null mkdir -p /var/volatile/run + if [ ! -e /run ]; then + ln -s /var/run /run + fi # cache handling if [ "$DEVCACHE" != "" ]; then |