]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-net: switch After target to network-online.target
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 27 Oct 2015 20:05:18 +0000 (20:05 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 29 Oct 2015 21:56:33 +0000 (17:56 -0400)
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@ubuntu.com>
Cc: Martin Pitt <martin.pitt@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
config/init/systemd/lxc-net.service.in

index 0467c0f3464e2ba70c08bd7f4c112ff92ab8e05e..1b8ef994265cdbfbd07564e1e51a495cfefe290d 100644 (file)
@@ -1,6 +1,6 @@
 [Unit]
 Description=LXC network bridge setup
-After=network.target
+After=network-online.target
 Before=lxc.service
 
 [Service]