aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2012-05-17 10:53:26 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2012-06-05 10:55:22 +0200
commitf3bdd160de09aade7f954f56c421f80d24fffa89 (patch)
tree4246720fd1218ee2b4e2bf870556c204822fac5f
parentcaebdafb40596f05b38d504eb756bcfe1a07bfc9 (diff)
downloadmeta-openembedded-contrib-f3bdd160de09aade7f954f56c421f80d24fffa89.tar.gz
systemd: create /var/run/utmp
* 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@gmail.com>
-rw-r--r--meta-oe/recipes-core/systemd/systemd_git.bb6
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 f4ca72a128..943d955e31 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 (){