systemd-machine-id-setup: add page (#11447)

* 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>
pull/23/head
Shashank Hebbar 2023-11-11 17:28:52 +05:30 committed by GitHub
parent 3822dac865
commit 8be7e26173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# 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 use `sudo` 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}}`