diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in index 1b37290d4f..927f97e94e 100644 --- a/units/systemd-logind.service.in +++ b/units/systemd-logind.service.in @@ -27,6 +27,8 @@ DeviceAllow=char-drm rw DeviceAllow=char-input rw DeviceAllow=char-tty rw DeviceAllow=char-vcs rw +# Make sure the DeviceAllow= lines above can work correctly when referenceing char-drm +ExecStartPre=-/sbin/modprobe -abq drm ExecStart=@rootlibexecdir@/systemd-logind FileDescriptorStoreMax=512 IPAddressDeny=any