All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] consolekit: fix console-kit-log-system-start.service startup
@ 2014-02-28  0:15 Jonathan Liu
  0 siblings, 0 replies; only message in thread
From: Jonathan Liu @ 2014-02-28  0:15 UTC (permalink / raw)
  To: openembedded-core

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>
---
 meta/recipes-support/consolekit/consolekit_0.4.6.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-support/consolekit/consolekit_0.4.6.bb b/meta/recipes-support/consolekit/consolekit_0.4.6.bb
index 2df97c5..c97b449 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"
 }
-- 
1.9.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-02-28  0:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-28  0:15 [PATCH] consolekit: fix console-kit-log-system-start.service startup Jonathan Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.