Commit e8aef519 authored by Michael Biebl's avatar Michael Biebl

Launch logind via a shell wrapper

We need to setup the cgroupfs mount and the runtime directory before
starting logind. Use a shell script which is triggered by the D-Bus
service.
parent 3bd8c45b
......@@ -139,6 +139,8 @@ override_dh_install:
debian/systemd/lib/systemd/system/
install --mode=755 debian/debian-fixup \
debian/systemd/lib/systemd/
install --mode=755 debian/systemd-logind-launch \
debian/systemd/lib/systemd/
# remove duplicates
# files shipped by systemd-sysv / sysvinit
rm debian/systemd/usr/share/man/man1/init.1
......
#!/bin/sh
if ! mountpoint -q /sys/fs/cgroup; then
mount -t tmpfs -o uid=0,gid=0,mode=0755,size=1024 none /sys/fs/cgroup
fi
if ! mountpoint -q /sys/fs/cgroup/systemd; then
mkdir -p /sys/fs/cgroup/systemd
mount -t cgroup -o nosuid,noexec,nodev,none,name=systemd systemd /sys/fs/cgroup/systemd
fi
mkdir -p /run/systemd
exec /lib/systemd/systemd-logind
......@@ -7,6 +7,6 @@
[D-BUS Service]
Name=org.freedesktop.login1
Exec=/lib/systemd/systemd-logind
Exec=/lib/systemd/systemd-logind-launch
User=root
SystemdService=dbus-org.freedesktop.login1.service
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment