systemd-machine-id-commit (1) Linux Manual Page
systemd-machine-id-commit – Commit transient machine ID to /etc/machine-id
Synopsis
- systemd-machine-id-commit
Description
systemd-machine-id-commitThis tool will execute no operation if /etc/machine-id doesn’t contain any valid machine ID, isn’t mounted as an independent temporary file system, of /etc is read-only. If those conditions are met, it will then write current machine ID to disk and unmount the transient /etc/machine-id file in a race-free manner to ensure that this file is always valid for other processes.
Note that the traditional way to initialize the machine ID in /etc/machine-id is to use systemd-machine-id-setup by system installer tools. You can also use systemd-firstboot(1) to initialize the machine ID on mounted (but not booted) system images.
Options
The following options are understood: –root=root
- Takes a directory path as an argument. All paths will be prefixed with the given alternate root path, including config search paths.
-h, –help
- Print a short help text and exit.
–version
- Print a short version string and exit.
