Commit e06bfc6a authored by Martin Pitt's avatar Martin Pitt

Let systemd create /var/lib/upower

This directory may not exist when cleaning out /var (e. g. on stateless
systems). As upowerd cannot mkdir it by itself due to `ProtectSystem`,
let systemd create it via `StateDirectory`.

Keep `ReadWritePaths` and the `mkdir` in the Makefile to continue to
support a non-default `--historydir`.
parent 18457c99
Pipeline #22441 passed with stage
in 7 minutes and 1 second
......@@ -14,6 +14,7 @@ ProtectSystem=strict
ProtectKernelTunables=false
ProtectControlGroups=true
ReadWritePaths=@historydir@
StateDirectory=upower
ProtectHome=true
PrivateTmp=true
......
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