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>
This commit is contained in:
Koen Kooi
2012-04-14 16:08:59 +02:00
parent 6885f03e7c
commit 397dba1ab2
+5 -1
View 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 (){