mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
units: Don't mount tracefs in LXC
Mounting tracefs fails in unprivileged LXC containers and latest LXD (3.23) bind mounts tracefs already. Fixes https://github.com/lxc/lxd/issues/7059
This commit is contained in:
parent
d4a3494e65
commit
cdc6c95737
@ -12,6 +12,7 @@ Description=Kernel Trace File System
|
|||||||
Documentation=https://www.kernel.org/doc/Documentation/trace/ftrace.txt
|
Documentation=https://www.kernel.org/doc/Documentation/trace/ftrace.txt
|
||||||
Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
|
Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
|
ConditionVirtualization=!lxc
|
||||||
ConditionPathExists=/sys/kernel/tracing
|
ConditionPathExists=/sys/kernel/tracing
|
||||||
ConditionCapability=CAP_SYS_RAWIO
|
ConditionCapability=CAP_SYS_RAWIO
|
||||||
Before=sysinit.target
|
Before=sysinit.target
|
||||||
|
Loading…
Reference in New Issue
Block a user