diff options
-rw-r--r-- | recipes-core/bind/bind_%.bbappend | 1 | ||||
-rw-r--r-- | recipes-core/bind/bind_virtualization.inc | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/recipes-core/bind/bind_%.bbappend b/recipes-core/bind/bind_%.bbappend new file mode 100644 index 00000000..617caccb --- /dev/null +++ b/recipes-core/bind/bind_%.bbappend | |||
@@ -0,0 +1 @@ | |||
require ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', '${BPN}_virtualization.inc', '', d)} | |||
diff --git a/recipes-core/bind/bind_virtualization.inc b/recipes-core/bind/bind_virtualization.inc new file mode 100644 index 00000000..b8f0b3ff --- /dev/null +++ b/recipes-core/bind/bind_virtualization.inc | |||
@@ -0,0 +1,4 @@ | |||
1 | # Tell named not to bother listening on the IP address that lxc handles itself. | ||
2 | do_install_append() { | ||
3 | sed -i -e 's,^\( *options *{\)$,\1\n\t// lxc would take care of this address itself\n\tlisten-on { ! 10.0.3.1; any;};\n,' ${D}${sysconfdir}/bind/named.conf.options | ||
4 | } | ||