diff options
author | Jonathan Liu <net147@gmail.com> | 2014-02-28 11:15:27 +1100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-07 14:55:27 +0000 |
commit | 2a9a14bf400fe0c263c58aa85b02aba7311b1328 (patch) | |
tree | eed9349c3b41c775619e876f229d650f624a6e6b /meta/recipes-support/consolekit | |
parent | 7f922a7b65690fcc110413b83953d466d46e977b (diff) | |
download | openembedded-core-2a9a14bf400fe0c263c58aa85b02aba7311b1328.tar.gz openembedded-core-2a9a14bf400fe0c263c58aa85b02aba7311b1328.tar.bz2 openembedded-core-2a9a14bf400fe0c263c58aa85b02aba7311b1328.zip |
consolekit: fix console-kit-log-system-start.service startup
console-kit-log-system-start.service fails to to start if the
/var/log/ConsoleKit directory does not exist. Normally it is created
automatically but as we mount a tmpfs at /var/log, we need to add
a tmpfiles.d entry to create it.
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-support/consolekit')
-rw-r--r-- | meta/recipes-support/consolekit/consolekit_0.4.6.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-support/consolekit/consolekit_0.4.6.bb b/meta/recipes-support/consolekit/consolekit_0.4.6.bb index 2df97c5e6c..c97b4498f7 100644 --- a/meta/recipes-support/consolekit/consolekit_0.4.6.bb +++ b/meta/recipes-support/consolekit/consolekit_0.4.6.bb @@ -37,6 +37,12 @@ FILES_pam-plugin-ck-connector += "${base_libdir}/security/*.so" RDEPENDS_pam-plugin-ck-connector += "${PN}" do_install_append() { + if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/tmpfiles.d + echo "d ${localstatedir}/log/ConsoleKit - - - -" \ + > ${D}${sysconfdir}/tmpfiles.d/consolekit.conf + fi + # Remove /var/run from package as console-kit-daemon will populate it on startup rm -fr "${D}${localstatedir}/run" } |