summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJoe Slater <jslater@windriver.com>2017-03-30 18:06:33 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-01 08:14:57 +0100
commitfcd48092d7bcab0cad2606e65332da62420935ad (patch)
tree07280f6b77d97d6d543b91917ba770aea4e681fb /meta
parent739130370fd75c6cae434a60a2bec59e104e6a2b (diff)
downloadpoky-fcd48092d7bcab0cad2606e65332da62420935ad.tar.gz
volatile-binds: correct some errors reported by systemd
systemd-tmpfiles-setup will fail at boot, so we suppress the default versions of etc.conf and home.conf. We also make sure that /var/{cache,spool} and /srv are writeable if they exist. (From OE-Core rev: 4a44a7658cebafab336f061f270b6ff44150a6d6) Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/volatile-binds/volatile-binds.bb9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-core/volatile-binds/volatile-binds.bb b/meta/recipes-core/volatile-binds/volatile-binds.bb
index f07458acc0..a6e3254930 100644
--- a/meta/recipes-core/volatile-binds/volatile-binds.bb
+++ b/meta/recipes-core/volatile-binds/volatile-binds.bb
@@ -17,6 +17,9 @@ REQUIRED_DISTRO_FEATURES = "systemd"
17 17
18VOLATILE_BINDS ?= "\ 18VOLATILE_BINDS ?= "\
19 /var/volatile/lib /var/lib\n\ 19 /var/volatile/lib /var/lib\n\
20 /var/volatile/cache /var/cache\n\
21 /var/volatile/spool /var/spool\n\
22 /var/volatile/srv /srv\n\
20" 23"
21VOLATILE_BINDS[type] = "list" 24VOLATILE_BINDS[type] = "list"
22VOLATILE_BINDS[separator] = "\n" 25VOLATILE_BINDS[separator] = "\n"
@@ -67,5 +70,11 @@ do_install () {
67 for service in ${SYSTEMD_SERVICE_volatile-binds}; do 70 for service in ${SYSTEMD_SERVICE_volatile-binds}; do
68 install -m 0644 $service ${D}${systemd_unitdir}/system/ 71 install -m 0644 $service ${D}${systemd_unitdir}/system/
69 done 72 done
73
74 # Suppress attempts to process some tmpfiles that are not temporary.
75 #
76 install -d ${D}${sysconfdir}/tmpfiles.d ${D}/var/cache
77 ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/etc.conf
78 ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/home.conf
70} 79}
71do_install[dirs] = "${WORKDIR}" 80do_install[dirs] = "${WORKDIR}"