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:58:45 +0000 |
commit | 9c7477ed2c2c6065d0d5dbed048a2738de2871ee (patch) | |
tree | 25cbfe893e375c99dd46b58d637597407b9b2068 /meta/recipes-support/consolekit | |
parent | c5c99de41939f201102f643f875abd16fa65fece (diff) | |
download | poky-9c7477ed2c2c6065d0d5dbed048a2738de2871ee.tar.gz |
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.
(From OE-Core rev: 2a9a14bf400fe0c263c58aa85b02aba7311b1328)
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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" | |||
37 | RDEPENDS_pam-plugin-ck-connector += "${PN}" | 37 | RDEPENDS_pam-plugin-ck-connector += "${PN}" |
38 | 38 | ||
39 | do_install_append() { | 39 | do_install_append() { |
40 | if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
41 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
42 | echo "d ${localstatedir}/log/ConsoleKit - - - -" \ | ||
43 | > ${D}${sysconfdir}/tmpfiles.d/consolekit.conf | ||
44 | fi | ||
45 | |||
40 | # Remove /var/run from package as console-kit-daemon will populate it on startup | 46 | # Remove /var/run from package as console-kit-daemon will populate it on startup |
41 | rm -fr "${D}${localstatedir}/run" | 47 | rm -fr "${D}${localstatedir}/run" |
42 | } | 48 | } |