From d8e23c6a3047f5845e6385056aac46177dca4c82 Mon Sep 17 00:00:00 2001 From: Diederik de Haas Date: Thu, 8 Dec 2022 18:33:41 +0100 Subject: [PATCH] Fix /etc/machine-id generation for first-boot In Bullseye and later, the `/etc/machine-id` file needs to have the value `uninitialized` for it to be recognized as first boot and therefor trigger the generation of a new machine-id. Fixes: #52 --- generate-recipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-recipe.py b/generate-recipe.py index 65b0f1c..a1e5005 100755 --- a/generate-recipe.py +++ b/generate-recipe.py @@ -139,7 +139,7 @@ else: if suite == 'buster': touch_machine_id = 'touch /etc/machine-id' else: - touch_machine_id = '' + touch_machine_id = 'echo "uninitialized" > /etc/machine-id' # Buster shipped timesyncd directly into systemd: if suite == 'buster':