[lxc-devel] [PATCH] systemd: fix lxc-containers vs lxc-net ordering (v3)

Martin Pitt martin.pitt at ubuntu.com
Tue Jun 30 14:14:08 UTC 2015


Serge Hallyn [2015-06-30 14:12 +0000]:
> Per pitti's suggestion, use After= to force lxc to wait for lxc-net to finish
> running.
> 
> Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>

Reviewed-By: Martin Pitt <martin.pitt at ubuntu.com>

> ---
>  config/init/systemd/lxc.service.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/config/init/systemd/lxc.service.in b/config/init/systemd/lxc.service.in
> index a256141..3b49c75 100644
> --- a/config/init/systemd/lxc.service.in
> +++ b/config/init/systemd/lxc.service.in
> @@ -1,6 +1,6 @@
>  [Unit]
>  Description=LXC Container Initialization and Autoboot Code
> -After=syslog.target network.target
> +After=syslog.target network.target lxc-net.service
>  Wants=lxc-net.service
>  

LGTM, thanks!

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


More information about the lxc-devel mailing list