systemd-machine-id-setup
Initialize the machine ID stored in
/etc/machine-idat install time with a provisioned or randomly generated ID. Note: Always usesudoto execute these commands as they require elevated privileges. More information: https://www.freedesktop.org/software/systemd/man/latest/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
- 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 /
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
