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:
parent
31224b7907
commit
d8e23c6a30
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue