]> git.proxmox.com Git - systemd.git/blob - man/systemd-machine-id-commit.1
Imported Upstream version 218
[systemd.git] / man / systemd-machine-id-commit.1
1 '\" t
2 .TH "SYSTEMD\-MACHINE\-ID\-COMMIT" "1" "" "systemd 218" "systemd-machine-id-commit"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 systemd-machine-id-commit \- Commit transient machine ID to /etc/machine\-id
24 .SH "SYNOPSIS"
25 .HP \w'\fBsystemd\-machine\-id\-commit\fR\ 'u
26 \fBsystemd\-machine\-id\-commit\fR
27 .SH "DESCRIPTION"
28 .PP
29 \fBsystemd\-machine\-id\-commit\fR
30 may be used to write on disk any transient machine ID mounted as a temporary file system in
31 /etc/machine\-id
32 at boot time\&. See
33 \fBmachine-id\fR(5)
34 for more information about this file\&.
35 .PP
36 This tool will execute no operation if
37 /etc/machine\-id
38 doesn\*(Aqt contain any valid machine ID, isn\*(Aqt mounted as an independent temporary file system, of
39 /etc
40 is read\-only\&. If those conditions are met, it will then write current machine ID to disk and unmount the transient
41 /etc/machine\-id
42 file in a race\-free manner to ensure that this file is always valid for other processes\&.
43 .PP
44 Note that the traditional way to initialize the machine ID in
45 /etc/machine\-id
46 is to use
47 \fBsystemd\-machine\-id\-setup\fR
48 by system installer tools\&. You can also use
49 \fBsystemd-firstboot\fR(1)
50 to initialize the machine ID on mounted (but not booted) system images\&.
51 .SH "OPTIONS"
52 .PP
53 The following options are understood:
54 .PP
55 \fB\-\-root=\fR\fB\fIroot\fR\fR
56 .RS 4
57 Takes a directory path as an argument\&. All paths will be prefixed with the given alternate
58 \fIroot\fR
59 path, including config search paths\&.
60 .RE
61 .PP
62 \fB\-h\fR, \fB\-\-help\fR
63 .RS 4
64 Print a short help text and exit\&.
65 .RE
66 .PP
67 \fB\-\-version\fR
68 .RS 4
69 Print a short version string and exit\&.
70 .RE
71 .SH "EXIT STATUS"
72 .PP
73 On success, 0 is returned, a non\-zero failure code otherwise\&.
74 .SH "SEE ALSO"
75 .PP
76 \fBsystemd\fR(1),
77 \fBsystemd-machine-id-commit.service\fR(8),
78 \fBsystemd-machine-id-setup\fR(1),
79 \fBmachine-id\fR(5),
80 \fBsystemd-firstboot\fR(1)