aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-04-14 16:08:59 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2012-04-16 11:01:38 +0200
commit397dba1ab21184317019e9808a3cc36e61050680 (patch)
tree282ebe59cd7a9eea5fc4072fe8f909ff160fa9db
parent6885f03e7cc05c07991d907793668a1a3ffdea5d (diff)
downloadmeta-openembedded-contrib-397dba1ab21184317019e9808a3cc36e61050680.tar.gz
systemd: create empty machine-id to fix first boot failures
Acked-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-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 b23e5f5108..f4ca72a128 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 = "r26"
+PR = "r27"
inherit useradd pkgconfig autotools vala perlnative
@@ -64,6 +64,10 @@ do_install() {
# create dir for journal
install -d ${D}${localstatedir}/log/journal
+
+ # 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
}
python populate_packages_prepend (){