[oe] [meta-oe][PATCH] systemd: create /var/run/utmp

Martin Jansa martin.jansa at gmail.com
Thu May 17 09:23:59 UTC 2012


* it was created by volatiles before, but without sysvinit
  systemd-update-utmp-runlevel.service fails to start without this

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta-oe/recipes-core/systemd/systemd_git.bb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-oe/recipes-core/systemd/systemd_git.bb
index f4ca72a..943d955 100644
--- a/meta-oe/recipes-core/systemd/systemd_git.bb
+++ b/meta-oe/recipes-core/systemd/systemd_git.bb
@@ -14,7 +14,7 @@ inherit gitpkgv
 PKGV = "v${GITPKGVTAG}"
 
 PV = "git"
-PR = "r27"
+PR = "r28"
 
 inherit useradd pkgconfig autotools vala perlnative
 
@@ -68,6 +68,10 @@ do_install() {
 	# create machine-id
 	# 20:12 < mezcalero> koen: you have three options: a) run systemd-machine-id-setup at install time, b) have / read-only and an empty file there (for stateless) and c) boot with / writable
 	touch ${D}${sysconfdir}/machine-id
+	
+	# systemd-update-utmp-runlevel.service fails to start without this
+	install -d ${D}${localstatedir}/run
+	touch ${D}${localstatedir}/run/utmp
 }
 
 python populate_packages_prepend (){
-- 
1.7.8.6





More information about the Openembedded-devel mailing list