From 18c8e76850d44c5218f24427b1a0c18ceb56079b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Sj=C3=B6strom?= <lars@radicore.se> Date: Wed, 5 Mar 2025 10:08:12 +0100 Subject: [PATCH] revert to static machine id for now --- pkgs/image/mkimage.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pkgs/image/mkimage.sh b/pkgs/image/mkimage.sh index 52a3b60..ad7d57d 100644 --- a/pkgs/image/mkimage.sh +++ b/pkgs/image/mkimage.sh @@ -40,16 +40,8 @@ ln -sf ../systemd-timesyncd.service rootfs/usr/lib/systemd/system/multi-user.tar # enable default network config mv rootfs/usr/lib/systemd/network/89-ethernet.network.example rootfs/usr/lib/systemd/network/89-ethernet.network -# FIXME: remove this! machine id should be setup by a confext instead? -mkdir rootfs/usr/lib/systemd/system/systemd-machine-id-commit.service.d -cat <<EOF > rootfs/usr/lib/systemd/system/systemd-machine-id-commit.service.d/override.conf -[Unit] -After=local-fs.target sysroot-etc.mount -ConditionPathIsMountPoint= -[Service] -ExecStart= -ExecStart=systemd-machine-id-setup -EOF +#FIXME: generate a temporary machine id (replace with overlay/confext later?) +$systemd/usr/bin/systemd-machine-id-setup --root=rootfs/ # install sys users mkdir creds