From: Marek Vasut Date: Mon, 27 Feb 2023 19:15:48 +0000 (+0100) Subject: systemd-systemctl: Create machine-id with "uninitialized" text in it X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~1551 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=263c852269027b1bd311e116021ac49d9001e1b0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/systemd/systemd-systemctl/systemctl b/meta/recipes-core/systemd/systemd-systemctl/systemctl index cddae75a067..45b29671ee3 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():