init: workaround for elogind to run

Let's provide some shim until directory migration is over.
This commit is contained in:
Anton Midyukov 2019-04-08 22:21:34 +07:00 committed by Michael Shigorin
parent fbc102f2d5
commit b75b2cc330

View File

@ -20,3 +20,10 @@ mkdir -p /var/run /var/lock/{serial,subsys,uucp}
chmod 0770 /var/lock/subsys
chmod 0770 /var/lock/{serial,uucp}
chgrp uucp /var/lock/{serial,uucp}
# Workaround for run elogind
if [ ! -L /var/run -a ! -e /var/run/dbus ]; then
ln -s /run/dbus /var/run/dbus
else
echo "symlink /run/dbus -> /var/run/dbus not created"
fi