lxc-net: switch After target to network-online.target

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>
This commit is contained in:
Serge Hallyn 2015-10-27 20:05:18 +00:00 committed by Stéphane Graber
parent b5f4bc783f
commit 4ed565e51a

View File

@ -1,6 +1,6 @@
[Unit]
Description=LXC network bridge setup
After=network.target
After=network-online.target
Before=lxc.service
[Service]