[lxc-devel] [PATCH] lxc-net: specify /dev/null as configuration file

Serge Hallyn serge.hallyn at ubuntu.com
Mon Jun 29 17:27:40 UTC 2015


Quoting Stéphane Graber (stgraber at ubuntu.com):
> On Mon, Jun 29, 2015 at 05:17:01PM +0000, Serge Hallyn wrote:
> > because with latest dnsmasq using nothing breaks if there is no
> > /etc/dnsmasq.conf file.
> > 
> > This is needed for
> > 
> > https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1468611
> 
> Hmm, really?
> 
> I thought I sent a patch which makes --conf-file disappear when
> LXC_DHCP_CONFILE isn't set. That was specifically meant to solve that
> issue.

That rings a bell - but it's not in git.

Happy to have that fix instead of this one, of course.

> > Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
> > ---
> >  config/init/common/lxc-net.in | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/config/init/common/lxc-net.in b/config/init/common/lxc-net.in
> > index a310507..3eec059 100644
> > --- a/config/init/common/lxc-net.in
> > +++ b/config/init/common/lxc-net.in
> > @@ -13,7 +13,7 @@ LXC_NETMASK="255.255.255.0"
> >  LXC_NETWORK="10.0.3.0/24"
> >  LXC_DHCP_RANGE="10.0.3.2,10.0.3.254"
> >  LXC_DHCP_MAX="253"
> > -LXC_DHCP_CONFILE=""
> > +LXC_DHCP_CONFILE="/dev/null"
> >  LXC_DOMAIN=""
> >  
> >  LXC_IPV6_ADDR=""
> > -- 
> > 2.1.4
> 
> -- 
> Stéphane Graber
> Ubuntu developer
> http://www.ubuntu.com



> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel



More information about the lxc-devel mailing list