mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00

* systemd-machine-id-setup: add page --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
696 B
696 B
systemd-machine-id-setup
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.
- Print the generated or committed machine ID:
systemd-machine-id-setup --print
- Specify an image policy:
systemd-machine-id-setup --image-policy={{your_policy}}
- Display the output as JSON:
sudo systemd-machine-id-setup --json=pretty
- Operate on a disk image instead of a directory tree:
systemd-machine-id-setup --image={{/path/to/image}}