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-28 07:53:54 +0000
commit33d9b3a8ed186c2d212acb83f715367912010e7f (patch)
tree5bfe13294385d1e8a45c66824d9462aed9a79e61 /meta/recipes-core/systemd
parent9b8665bb96568cba19744697aa42c1bbafc3ba04 (diff)
downloadpoky-33d9b3a8ed186c2d212acb83f715367912010e7f.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 . (From OE-Core rev: 263c852269027b1bd311e116021ac49d9001e1b0) 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):
302 # For the stateless configuration, where /etc is generated at runtime 302 # For the stateless configuration, where /etc is generated at runtime
303 # (for example on a tmpfs), this script shouldn't run at all and we 303 # (for example on a tmpfs), this script shouldn't run at all and we
304 # allow systemd to completely populate /etc. 304 # allow systemd to completely populate /etc.
305 (root / SYSCONFDIR / "machine-id").touch() 305 (root / SYSCONFDIR / "machine-id").write_text("uninitialized")
306 306
307 307
308def main(): 308def main():