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
This commit is contained in:
Diederik de Haas 2022-12-08 18:33:41 +01:00
parent 31224b7907
commit d8e23c6a30
No known key found for this signature in database
GPG Key ID: D76E5BCE787EDB6E
1 changed files with 1 additions and 1 deletions

View File

@ -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':