[oe-commits] Jonathan Liu : consolekit: fix console-kit-log-system-start.service startup

git at git.openembedded.org git at git.openembedded.org
Fri Mar 7 14:39:59 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 54c41bc3e6738476980dd2edb03db371bc61fa22
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=54c41bc3e6738476980dd2edb03db371bc61fa22

Author: Jonathan Liu <net147 at gmail.com>
Date:   Fri Feb 28 11:15:27 2014 +1100

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 at gmail.com>
Signed-off-by: Saul Wold <sgw at linux.intel.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"
 }



More information about the Openembedded-commits mailing list