mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-13 18:02:40 +00:00

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 <terceiro@debian.org>
16 lines
304 B
SYSTEMD
16 lines
304 B
SYSTEMD
[Unit]
|
|
Description=LXC network bridge setup
|
|
After=network-online.target
|
|
Before=lxc.service
|
|
Documentation=man:lxc
|
|
ConditionVirtualization=!lxc
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=@LIBEXECDIR@/lxc/lxc-net start
|
|
ExecStop=@LIBEXECDIR@/lxc/lxc-net stop
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|