[lxc-devel] [PATCH] lxc-net: switch After target to network-online.target

Serge Hallyn serge.hallyn at ubuntu.com
Tue Oct 27 20:05:18 UTC 2015


Otherwise it may start too early and end up taking 10.0.3.1 even
though eth0 was eventually going to end up on 10.0.3.x.

https://bugs.launchpad.net/juju-core/+bug/1510619

Reported-by: Ryan Harper <ryan.harper at ubuntu.com>
Cc: Martin Pitt <martin.pitt at ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
 config/init/systemd/lxc-net.service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/init/systemd/lxc-net.service.in b/config/init/systemd/lxc-net.service.in
index 0467c0f..1b8ef99 100644
--- a/config/init/systemd/lxc-net.service.in
+++ b/config/init/systemd/lxc-net.service.in
@@ -1,6 +1,6 @@
 [Unit]
 Description=LXC network bridge setup
-After=network.target
+After=network-online.target
 Before=lxc.service
 
 [Service]
-- 
2.5.0



More information about the lxc-devel mailing list