2 .TH "SYSTEMD\-FIRSTBOOT" "1" "" "systemd 217" "systemd-firstboot"
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 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
17 .\" disable justification (adjust text to left margin only)
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
23 systemd-firstboot, systemd-firstboot.service \- Initialize basic system settings on or before the first boot\-up of a system
25 .HP \w'\fBsystemd\-firstboot\fR\ 'u
26 \fBsystemd\-firstboot\fR [OPTIONS...]
28 systemd\-firstboot\&.service
31 \fBsystemd\-firstboot\fR
32 initializes the most basic system settings interactively on the first boot, or optionally non\-interactively when a system image is created\&. The following settings may be set up:
42 The system locale, more specifically the two locale variables
78 The machine ID of the system
89 The root user\*(Aqs password
92 Each of the fields may either be queried interactively from the users, set non\-interactively on the tool\*(Aqs command line, or be copied from a host system that is used to set up the system image\&.
94 If a setting is already initialized it will not be overwritten and the user will not be prompted for the setting\&.
96 Note that this tool operates directly on the file system and does not involve any running system services, unlike
100 \fBhostnamectl\fR(1)\&. This allows
101 \fBsystemd\-firstboot\fR
102 to operate on mounted but not booted disk images and in early boot\&. It is not recommended to use
103 \fBsystemd\-firstboot\fR
104 on the running system while it is up\&.
107 The following options are understood:
109 \fB\-\-root=\fR\fB\fIroot\fR\fR
111 Takes a directory path as an argument\&. All paths will be prefixed with the given alternate
113 path, including config search paths\&. This is useful to operate on a system image mounted to the specified directory instead of the host system itself\&.
116 \fB\-\-locale=\fR\fB\fILOCALE\fR\fR, \fB\-\-locale\-messages=\fR\fB\fILOCALE\fR\fR
118 Sets the system locale, more specifically the
122 settings\&. The argument should be a valid locale identifier, such as
123 "de_DE\&.UTF\-8"\&. This controls the
125 configuration file\&.
128 \fB\-\-timezone=\fR\fB\fITIMEZONE\fR\fR
130 Sets the system time zone\&. The argument should be a valid time zone identifier, such as
131 "Europe/Berlin"\&. This controls the
136 \fB\-\-hostname=\fR\fB\fIHOSTNAME\fR\fR
138 Sets the system hostname\&. The argument should be a host name, compatible with DNS\&. This controls the
140 configuration file\&.
143 \fB\-\-machine\-id=\fR\fB\fIID\fR\fR
145 Sets the system\*(Aqs machine ID\&. This controls the
150 \fB\-\-root\-password=\fR\fB\fIPASSWORD\fR\fR, \fB\-\-root\-password\-file=\fR\fB\fIPATH\fR\fR
152 Sets the password of the system\*(Aqs root user\&. This creates a
154 file\&. This setting exists in two forms:
155 \fB\-\-root\-password=\fR
156 accepts the password to set directly on the command line,
157 \fB\-\-root\-password\-file=\fR
158 reads it from a file\&. Note that it is not recommended specifying passwords on the command line as other users might be able to see them simply by invoking
162 \fB\-\-prompt\-locale\fR, \fB\-\-prompt\-timezone\fR, \fB\-\-prompt\-hostname\fR, \fB\-\-prompt\-root\-password\fR
165 Prompt the user interactively for a specific basic setting\&. Note that any explicit configuration settings specified on the command line take precedence, and the user is not prompted for it\&.
171 Query the user for locale, timezone, hostname and root password\&. This is equivalent to specifying
172 \fB\-\-prompt\-locale\fR,
173 \fB\-\-prompt\-timezone\fR,
174 \fB\-\-prompt\-hostname\fR,
175 \fB\-\-prompt\-root\-password\fR
179 \fB\-\-copy\-locale\fR, \fB\-\-copy\-timezone\fR, \fB\-\-copy\-root\-password\fR
182 Copy a specific basic setting from the host\&. This only works in combination with
190 Copy locale, time zone and root password from the host\&. This is equivalent to specifying
191 \fB\-\-copy\-locale\fR,
192 \fB\-\-copy\-timezone\fR,
193 \fB\-\-copy\-root\-password\fR
197 \fB\-\-setup\-machine\-id\fR
200 Initialize the system\*(Aqs machine ID to a random ID\&. This only works in combination with
204 \fB\-h\fR, \fB\-\-help\fR
206 Print a short help text and exit\&.
211 Print a short version string and exit\&.
215 On success, 0 is returned, a non\-zero failure code otherwise\&.
219 \fBlocale.conf\fR(5),
224 \fBsystemd-machine-id-setup\fR(1),
226 \fBtimedatectl\fR(1),