diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-03-27 02:34:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-25 17:19:19 +0100 |
commit | 6e03bfcb00009b90306507f16610165e9a783298 (patch) | |
tree | 76ed56b019ed1df207863c1352cf63b00723c4e2 /meta/recipes-connectivity/bind/bind_9.9.5.bb | |
parent | 9183987e6b6302a40bed83dc0bcf908d9a00b86b (diff) | |
download | poky-6e03bfcb00009b90306507f16610165e9a783298.tar.gz |
bind: add support for read-only rootfs
This patch adds support for read-only rootfs to the bind service.
Basically it just bind mounts several directories so that the bind
service could start correctly without reporting any error.
(From OE-Core rev: 99cc96eaee28bfde89096689b1296d28937ead88)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/bind/bind_9.9.5.bb')
-rw-r--r-- | meta/recipes-connectivity/bind/bind_9.9.5.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bind/bind_9.9.5.bb b/meta/recipes-connectivity/bind/bind_9.9.5.bb index 65ec2322fd..de10eb8029 100644 --- a/meta/recipes-connectivity/bind/bind_9.9.5.bb +++ b/meta/recipes-connectivity/bind/bind_9.9.5.bb | |||
@@ -15,6 +15,7 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \ | |||
15 | file://dont-test-on-host.patch \ | 15 | file://dont-test-on-host.patch \ |
16 | file://generate-rndc-key.sh \ | 16 | file://generate-rndc-key.sh \ |
17 | file://named.service \ | 17 | file://named.service \ |
18 | file://init.d-add-support-for-read-only-rootfs.patch \ | ||
18 | " | 19 | " |
19 | 20 | ||
20 | SRC_URI[md5sum] = "e676c65cad5234617ee22f48e328c24e" | 21 | SRC_URI[md5sum] = "e676c65cad5234617ee22f48e328c24e" |
@@ -50,6 +51,7 @@ do_install_append() { | |||
50 | rm "${D}${mandir}/man1/nslookup.1" | 51 | rm "${D}${mandir}/man1/nslookup.1" |
51 | rmdir "${D}${localstatedir}/run" | 52 | rmdir "${D}${localstatedir}/run" |
52 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" | 53 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" |
54 | install -d "${D}${localstatedir}/cache/bind" | ||
53 | install -d "${D}${sysconfdir}/bind" | 55 | install -d "${D}${sysconfdir}/bind" |
54 | install -d "${D}${sysconfdir}/init.d" | 56 | install -d "${D}${sysconfdir}/init.d" |
55 | install -m 644 ${S}/conf/* "${D}${sysconfdir}/bind/" | 57 | install -m 644 ${S}/conf/* "${D}${sysconfdir}/bind/" |