commands.sh

systemd-machine-id-setup

linux

Initialize the machine ID stored in `/etc/machine-id` at install time with a provisioned or randomly generated ID. Note: Always use `sudo` to execute these commands as they require elevated privileges.

More info →

Examples (4)

Print the generated or committed machine ID

Specify an image policy

systemd-machine-id-setup --image-policy your_policy

Display the output as JSON

Operate on a disk image instead of a directory tree

systemd-machine-id-setup --image /path/to/image
made by @shridhargupta | data from tldr-pages