Actions
Bug #578
closedNicecity: local lxc-net service overrides the one provided by LXC package
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Service :: Backup
Start date:
2017-07-24
Due date:
% Done:
100%
Estimated time:
Patch Available:
Confirmed:
Yes
Branch:
Entity:
DuckCorp
Security:
No
Help Needed:
Description
/etc/systemd/system/lxc-net.service
overrides /lib/systemd/system/lxc-net.service
which belongs to LXC package.
It seems both files provides same features (see), /etc/systemd/system/lxc-net.service
should be removed and /etc/default/lxc-net should be added
.
Updated by Pierre-Louis Bonicoli over 7 years ago
- Description updated (diff)
/lib/systemd/system/lxc-net.service
is calling /usr/lib/x86_64-linux-gnu/lxc/lxc-net
which calls iptables
. Firewall rules are handled explicitly, /lib/systemd/system/lxc-net.service
will be disabled and /etc/systemd/system/lxc-net.service
will be renamed.
Updated by Pierre-Louis Bonicoli over 7 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 90
- Security set to No
lxc-net
masked usingsystemctl mask lxc-net
/etc/systemd/system/lxc-net.service
renamed/etc/systemd/system/lxc-bridge.service
/lib/systemd/system/lxc.service
overridden with/etc/systemd/system/lxc.service
(in order to replacelxc-net.service
dependency withlxc-dhcp.service
). Dependency removal can not use drop-in, the whole unit file needs to be overridden./etc/systemd/system/lxc-dhcp.service
updated withs/lxc-net/lxc-bridge/
systemctl daemon-reload
called
Updated by Pierre-Louis Bonicoli over 7 years ago
- Status changed from In Progress to Resolved
- % Done changed from 90 to 100
lxc-bridge
and lxc-dhcp
are disabled, lxc.service
is enabled and requires lxc-dhcp
which requires lxc-bridge
.
Successfully tested.
Actions