[oe-commits] [openembedded-core] 23/48: volatile-binds: correct some errors reported by systemd

git at git.openembedded.org git at git.openembedded.org
Thu May 18 12:09:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch morty
in repository openembedded-core.

commit a7c6129a7c9c0c7e1b729e16a60b2ca704af3f97
Author: Joe Slater <jslater at windriver.com>
AuthorDate: Thu Mar 30 14:16:08 2017 -0700

    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.
    
    Signed-off-by: Joe Slater <jslater at windriver.com>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta/recipes-core/volatile-binds/volatile-binds.bb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/meta/recipes-core/volatile-binds/volatile-binds.bb b/meta/recipes-core/volatile-binds/volatile-binds.bb
index fee7275..130ab55 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"
 
 VOLATILE_BINDS ?= "\
     /var/volatile/lib /var/lib\n\
+    /var/volatile/cache /var/cache\n\
+    /var/volatile/spool /var/spool\n\
+    /var/volatile/srv /srv\n\
 "
 VOLATILE_BINDS[type] = "list"
 VOLATILE_BINDS[separator] = "\n"
@@ -67,5 +70,11 @@ do_install () {
     for service in ${SYSTEMD_SERVICE_volatile-binds}; do
         install -m 0644 $service ${D}${systemd_unitdir}/system/
     done
+
+    # Suppress attempts to process some tmpfiles that are not temporary.
+    #
+    install -d ${D}${sysconfdir}/tmpfiles.d ${D}/var/cache
+    ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/etc.conf
+    ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/home.conf
 }
 do_install[dirs] = "${WORKDIR}"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list