summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2023-02-27 20:15:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-27 22:58:01 +0000
commit263c852269027b1bd311e116021ac49d9001e1b0 (patch)
tree111a2abe1ec27d72c593dd0ee4d9ec339986ef7a /meta/recipes-core/systemd
parentb84302ef56f2516742a496aef43b89d4c3decd37 (diff)
downloadopenembedded-core-263c852269027b1bd311e116021ac49d9001e1b0.tar.gz
systemd-systemctl: Create machine-id with "uninitialized" text in it
Instead of creating empty /etc/machine-id file using touch, write text "uninitialized" into it. Systemd requires "uninitialized" in the /etc/machine-id file to trigger systemd-firstboot . Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd')
-rwxr-xr-xmeta/recipes-core/systemd/systemd-systemctl/systemctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/systemd/systemd-systemctl/systemctl b/meta/recipes-core/systemd/systemd-systemctl/systemctl
index cddae75a06..45b29671ee 100755
--- a/meta/recipes-core/systemd/systemd-systemctl/systemctl
+++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl
@@ -302,7 +302,7 @@ def preset_all(root):
# For the stateless configuration, where /etc is generated at runtime
# (for example on a tmpfs), this script shouldn't run at all and we
# allow systemd to completely populate /etc.
- (root / SYSCONFDIR / "machine-id").touch()
+ (root / SYSCONFDIR / "machine-id").write_text("uninitialized")
def main():