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

Stéphane Graber stgraber at ubuntu.com
Mon Jun 29 17:24:20 UTC 2015


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.

> 
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20150629/6852644b/attachment.sig>


More information about the lxc-devel mailing list