From 00a801aee140c91ae968ffad271fc85702ff80ff Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Fri, 22 Dec 2017 15:57:44 -0500 Subject: dnsmasq: add dnsmasq.d entries for lxc and libvirt A while ago changes were merged to meta-openembedded to make /etc/dnsmasq.d (and specifically the files it contains) referenced when the main instance of dnsmasq is run (see dnsmasq.service and commit ba665493a0dd [dnsmasq: allow for dnsmasq instances to reuse default dnsmasq.conf]). We, however, continued to modify the global configuration (/etc/dnsmasq.conf) to keep the main instance of dnsmasq from attaching to virbr0 and lxcbr0, by using 'bind-dynamic'. This approach is problematic, since it is common that other instances of dnsmasq will make use of the global configuration file and may have incompatible options. We see this for example when attempting to start lxc-net which will attempt to use 'bind-interface' which is incompatible with 'bind-dynamic' that we were adding to the global configuration. Here we remove our change to the global configuration (leaving it mostly empty as it should be) and instead have lxc and libvirt packages instruct the global instance not to bind to virbr0 and lxcbr0 by adding configuration files to /etc/dnsmasq.d (setting except-interface). The added benefit to this approach is that if lxc or libvirt are not part of an image the global configuration will not be modified in such a way as to expect that they are present. Signed-off-by: Mark Asselstine Signed-off-by: Bruce Ashfield --- recipes-support/dnsmasq/dnsmasq_2.%.bbappend | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 recipes-support/dnsmasq/dnsmasq_2.%.bbappend (limited to 'recipes-support') diff --git a/recipes-support/dnsmasq/dnsmasq_2.%.bbappend b/recipes-support/dnsmasq/dnsmasq_2.%.bbappend deleted file mode 100644 index 8d66ca6a..00000000 --- a/recipes-support/dnsmasq/dnsmasq_2.%.bbappend +++ /dev/null @@ -1,5 +0,0 @@ -# dnsmasq is greedy with interfaces by default using bind-dynamic will -# make it less greedy but still function as it did by default. -do_install_append() { - sed -i '/#bind-interfaces/a # Play nice with libvirt\nbind-dynamic' ${D}${sysconfdir}/dnsmasq.conf -} -- cgit v1.2.3-54-g00ecf