diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2012-04-14 16:08:59 +0200 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-04-16 11:01:38 +0200 |
| commit | 397dba1ab21184317019e9808a3cc36e61050680 (patch) | |
| tree | 282ebe59cd7a9eea5fc4072fe8f909ff160fa9db | |
| parent | 6885f03e7cc05c07991d907793668a1a3ffdea5d (diff) | |
| download | meta-openembedded-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.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 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 | |||
| 14 | PKGV = "v${GITPKGVTAG}" | 14 | PKGV = "v${GITPKGVTAG}" |
| 15 | 15 | ||
| 16 | PV = "git" | 16 | PV = "git" |
| 17 | PR = "r26" | 17 | PR = "r27" |
| 18 | 18 | ||
| 19 | inherit useradd pkgconfig autotools vala perlnative | 19 | inherit useradd pkgconfig autotools vala perlnative |
| 20 | 20 | ||
| @@ -64,6 +64,10 @@ do_install() { | |||
| 64 | 64 | ||
| 65 | # create dir for journal | 65 | # create dir for journal |
| 66 | install -d ${D}${localstatedir}/log/journal | 66 | install -d ${D}${localstatedir}/log/journal |
| 67 | |||
| 68 | # create machine-id | ||
| 69 | # 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 | ||
| 70 | touch ${D}${sysconfdir}/machine-id | ||
| 67 | } | 71 | } |
| 68 | 72 | ||
| 69 | python populate_packages_prepend (){ | 73 | python populate_packages_prepend (){ |
