diff options
author | Balint Reczey <balint.reczey@canonical.com> | 2020-03-22 21:37:06 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-03-23 08:34:48 +0100 |
commit | cdc6c95737d26b1746b446dfe662872d593d23c6 (patch) | |
tree | 8cef76eb8d41a26f98ff642c1e3532f15481256e /units/sys-kernel-tracing.mount | |
parent | swap: check p->what for NULL (diff) | |
download | systemd-cdc6c95737d26b1746b446dfe662872d593d23c6.tar.xz systemd-cdc6c95737d26b1746b446dfe662872d593d23c6.zip |
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
Diffstat (limited to 'units/sys-kernel-tracing.mount')
-rw-r--r-- | units/sys-kernel-tracing.mount | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/units/sys-kernel-tracing.mount b/units/sys-kernel-tracing.mount index cb42b47012..e29b258a47 100644 --- a/units/sys-kernel-tracing.mount +++ b/units/sys-kernel-tracing.mount @@ -12,6 +12,7 @@ Description=Kernel Trace File System Documentation=https://www.kernel.org/doc/Documentation/trace/ftrace.txt Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems DefaultDependencies=no +ConditionVirtualization=!lxc ConditionPathExists=/sys/kernel/tracing ConditionCapability=CAP_SYS_RAWIO Before=sysinit.target |