systemd: create empty machine-id to fix first boot failures
authorKoen Kooi <koen@dominion.thruhere.net>
Sat, 14 Apr 2012 14:08:59 +0000 (16:08 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:20:11 +0000 (08:20 -0800)
Acked-by: Denys Dmytriyenko <denys@ti.com>
(From meta-openembedded rev: 397dba1ab21184317019e9808a3cc36e61050680)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-core/systemd/systemd_git.bb

index b23e5f5..f4ca72a 100644 (file)
@@ -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 (){