Initialize the machine ID stored in
/etc/machine-id
at install time with a provisioned or randomly generated ID. Note: Always usesudo
to execute these commands as they require elevated privileges. More information: https://www.freedesktop.org/software/systemd/man/systemd-machine-id-setup.html.
systemd-machine-id-setup --print
systemd-machine-id-setup --image-policy=your_policy
sudo systemd-machine-id-setup --json=pretty
systemd-machine-id-setup --image=/path/to/image