From: Antonio Terceiro Date: Wed, 2 Feb 2022 18:11:02 +0000 (-0300) Subject: lxc-net: don't start by default inside lxc X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca4c25c6e9ebb92f9e241ef9a231d4a715cb812d;p=thirdparty%2Flxc.git lxc-net: don't start by default inside lxc When lxc is installed inside an lxc container, trying to bring up lxc-net with the default parameters will conflict with the networking setup for lxc on the host. This breaks all networking inside the container where lxc is installed. Signed-off-by: Antonio Terceiro --- diff --git a/config/init/systemd/lxc-net.service.in b/config/init/systemd/lxc-net.service.in index 6ed8cd82b..a615d8b2d 100644 --- a/config/init/systemd/lxc-net.service.in +++ b/config/init/systemd/lxc-net.service.in @@ -3,6 +3,7 @@ Description=LXC network bridge setup After=network-online.target Before=lxc.service Documentation=man:lxc +ConditionVirtualization=!lxc [Service] Type=oneshot