From 723d30f7ffb1c2eb9734273a194f48a87ca2fa3f Mon Sep 17 00:00:00 2001 From: Torsten Fohrer Date: Thu, 30 Mar 2017 11:55:28 +0200 Subject: [PATCH] Avoid waiting for bridge interface if disabled in sysconfig/lxc | lxc-net via USE_LXC_BRIDGE Signed-off-by: Torsten Fohrer --- config/init/common/lxc-containers.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/init/common/lxc-containers.in b/config/init/common/lxc-containers.in index 5becccdbc..35b9084be 100644 --- a/config/init/common/lxc-containers.in +++ b/config/init/common/lxc-containers.in @@ -51,6 +51,8 @@ fi # to start wait_for_bridge() { + [ "x$USE_LXC_BRIDGE" = "xtrue" ] || { return 0; } + local BRNAME try flags br [ -f "$sysconfdir"/lxc/default.conf ] || { return 0; }