diff options
Diffstat (limited to 'recipes-containers')
| -rw-r--r-- | recipes-containers/lxc/files/dnsmasq.conf | 2 | ||||
| -rw-r--r-- | recipes-containers/lxc/lxc_2.0.8.bb | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/recipes-containers/lxc/files/dnsmasq.conf b/recipes-containers/lxc/files/dnsmasq.conf new file mode 100644 index 00000000..124f7ebe --- /dev/null +++ b/recipes-containers/lxc/files/dnsmasq.conf | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | bind-interfaces | ||
| 2 | except-interface=lxcbr0 | ||
diff --git a/recipes-containers/lxc/lxc_2.0.8.bb b/recipes-containers/lxc/lxc_2.0.8.bb index c9ce5f06..b616e947 100644 --- a/recipes-containers/lxc/lxc_2.0.8.bb +++ b/recipes-containers/lxc/lxc_2.0.8.bb | |||
| @@ -36,6 +36,7 @@ SRC_URI = "http://linuxcontainers.org/downloads/${BPN}-${PV}.tar.gz \ | |||
| 36 | file://lxc-doc-upgrade-to-use-docbook-3.1-DTD.patch \ | 36 | file://lxc-doc-upgrade-to-use-docbook-3.1-DTD.patch \ |
| 37 | file://logs-optionally-use-base-filenames-to-report-src-fil.patch \ | 37 | file://logs-optionally-use-base-filenames-to-report-src-fil.patch \ |
| 38 | file://cgroups-work-around-issue-in-gcc-7.patch \ | 38 | file://cgroups-work-around-issue-in-gcc-7.patch \ |
| 39 | file://dnsmasq.conf \ | ||
| 39 | " | 40 | " |
| 40 | 41 | ||
| 41 | SRC_URI[md5sum] = "7bfd95280522d7936c0979dfea92cdb5" | 42 | SRC_URI[md5sum] = "7bfd95280522d7936c0979dfea92cdb5" |
| @@ -134,6 +135,11 @@ do_install_append() { | |||
| 134 | if [ -d ${D}${exec_prefix}/lib/python* ]; then mv ${D}${exec_prefix}/lib/python* ${D}${libdir}/; fi | 135 | if [ -d ${D}${exec_prefix}/lib/python* ]; then mv ${D}${exec_prefix}/lib/python* ${D}${libdir}/; fi |
| 135 | rmdir --ignore-fail-on-non-empty ${D}${exec_prefix}/lib | 136 | rmdir --ignore-fail-on-non-empty ${D}${exec_prefix}/lib |
| 136 | fi | 137 | fi |
| 138 | |||
| 139 | # Force the main dnsmasq instance to bind only to specified interfaces and | ||
| 140 | # to not bind to virbr0. Libvirt will run its own instance on this interface. | ||
| 141 | install -d ${D}/${sysconfdir}/dnsmasq.d | ||
| 142 | install -m 644 ${WORKDIR}/dnsmasq.conf ${D}/${sysconfdir}/dnsmasq.d/lxc | ||
| 137 | } | 143 | } |
| 138 | 144 | ||
| 139 | EXTRA_OEMAKE += "TEST_DIR=${D}${PTEST_PATH}/src/tests" | 145 | EXTRA_OEMAKE += "TEST_DIR=${D}${PTEST_PATH}/src/tests" |
