diff --git a/Makefile-man.am b/Makefile-man.am index e3c43b269ba..df40a638f05 100644 --- a/Makefile-man.am +++ b/Makefile-man.am @@ -75,6 +75,7 @@ MANPAGES += \ man/systemd-inhibit.1 \ man/systemd-initctl.service.8 \ man/systemd-journald.service.8 \ + man/systemd-machine-id-commit.1 \ man/systemd-machine-id-setup.1 \ man/systemd-notify.1 \ man/systemd-nspawn.1 \ @@ -213,6 +214,7 @@ MANPAGES_ALIAS += \ man/systemd-journald.8 \ man/systemd-journald.socket.8 \ man/systemd-kexec.service.8 \ + man/systemd-machine-id-commit.service.8 \ man/systemd-poweroff.service.8 \ man/systemd-reboot.service.8 \ man/systemd-remount-fs.8 \ diff --git a/man/systemd-machine-id-commit.service.xml b/man/systemd-machine-id-commit.service.xml new file mode 100644 index 00000000000..6da19b9f173 --- /dev/null +++ b/man/systemd-machine-id-commit.service.xml @@ -0,0 +1,101 @@ + + + + + + + + systemd-machine-id-commit.service + systemd + + + + Developer + Didier + Roche + didrocks@ubuntu.com + + + + + + systemd-machine-id-commit.service + 8 + + + + systemd-machine-id-commit.service + Commit transient machine-id to disk + + + + systemd-machine-id-commit.service + /usr/lib/systemd/systemd-machine-id-commit + + + + Description + + systemd-machine-id-commit.service is + a service responsible for commiting any transient + /etc/machine-id file to a writable file + system. See + machine-id5 + for more information about this file. + + This service is started shortly after + local-fs.target if + /etc/machine-id is an independent mount + point (probably a tmpfs one) and /etc is writable. + systemd-machine-id-commit will then + write current machine ID to disk and unmount the transient + /etc/machine-id file in a race-free + manner to ensure that 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-firstboot1 + to initialize the machine ID on mounted (but not + booted) system images. The main use case for that service is + /etc/machine-id being an empty file at + boot and initrd chaining to systemd giving it a read only file + system that will be turned read-write later during the boot + process. + + There is no consequence if that service fails other than + a newer machine-id will be generated during next system boot. + + + + + See Also + + systemd1, + systemd-machine-id-commit1, + systemd-machine-id-setup1, + machine-id5, + systemd-firstboot1 + + + + diff --git a/man/systemd-machine-id-commit.xml b/man/systemd-machine-id-commit.xml new file mode 100644 index 00000000000..ed2a6d0bd7e --- /dev/null +++ b/man/systemd-machine-id-commit.xml @@ -0,0 +1,125 @@ + + + + + + + + + systemd-machine-id-commit + systemd + + + + Developer + Didier + Roche + didrocks@ubuntu.com + + + + + + systemd-machine-id-commit + 1 + + + + systemd-machine-id-commit + Commit transient machine ID to /etc/machine-id + + + + + systemd-machine-id-commit + + + + + Description + + systemd-machine-id-commit may + be used to write on disk any transient machine ID + mounted as a temporary file system in + /etc/machine-id at boot time. See + machine-id5 + for more information about this file. + + This 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-firstboot1 + to initialize the machine ID on mounted (but not + booted) system images. + + + + Options + + The following options are understood: + + + + + Takes a directory path + as an argument. All paths will be + prefixed with the given alternate + root path, + including config search paths. + + + + + + + + + + Exit status + + On success, 0 is returned, a non-zero failure + code otherwise. + + + + See Also + + systemd1, + systemd-machine-id-commit.service8, + systemd-machine-id-setup1, + machine-id5, + systemd-firstboot1 + + + +