1SYSTEMD-FIRSTBOOT(1)           systemd-firstboot          SYSTEMD-FIRSTBOOT(1)
2
3
4

NAME

6       systemd-firstboot, systemd-firstboot.service - Initialize basic system
7       settings on or before the first boot-up of a system
8

SYNOPSIS

10       systemd-firstboot [OPTIONS...]
11
12       systemd-firstboot.service
13

DESCRIPTION

15       systemd-firstboot initializes the most basic system settings
16       interactively on the first boot, or optionally non-interactively when a
17       system image is created. The following settings may be set up:
18
19       ·   The system locale, more specifically the two locale variables LANG=
20           and LC_MESSAGES
21
22       ·   The system time zone
23
24       ·   The system host name
25
26       ·   The machine ID of the system
27
28       ·   The root user's password
29
30       Each of the fields may either be queried interactively from the users,
31       set non-interactively on the tool's command line, or be copied from a
32       host system that is used to set up the system image.
33
34       If a setting is already initialized it will not be overwritten and the
35       user will not be prompted for the setting.
36
37       Note that this tool operates directly on the file system and does not
38       involve any running system services, unlike localectl(1),
39       timedatectl(1) or hostnamectl(1). This allows systemd-firstboot to
40       operate on mounted but not booted disk images and in early boot. It is
41       not recommended to use systemd-firstboot on the running system while it
42       is up.
43

OPTIONS

45       The following options are understood:
46
47       --root=root
48           Takes a directory path as an argument. All paths will be prefixed
49           with the given alternate root path, including config search paths.
50           This is useful to operate on a system image mounted to the
51           specified directory instead of the host system itself.
52
53       --locale=LOCALE, --locale-messages=LOCALE
54           Sets the system locale, more specifically the LANG= and LC_MESSAGES
55           settings. The argument should be a valid locale identifier, such as
56           "de_DE.UTF-8". This controls the locale.conf(5) configuration file.
57
58       --timezone=TIMEZONE
59           Sets the system time zone. The argument should be a valid time zone
60           identifier, such as "Europe/Berlin". This controls the localtime(5)
61           symlink.
62
63       --hostname=HOSTNAME
64           Sets the system hostname. The argument should be a host name,
65           compatible with DNS. This controls the hostname(5) configuration
66           file.
67
68       --machine-id=ID
69           Sets the system's machine ID. This controls the machine-id(5) file.
70
71       --root-password=PASSWORD, --root-password-file=PATH
72           Sets the password of the system's root user. This creates a
73           shadow(5) file. This setting exists in two forms: --root-password=
74           accepts the password to set directly on the command line,
75           --root-password-file= reads it from a file. Note that it is not
76           recommended specifying passwords on the command line as other users
77           might be able to see them simply by invoking ps(1).
78
79       --prompt-locale, --prompt-timezone, --prompt-hostname,
80       --prompt-root-password
81           Prompt the user interactively for a specific basic setting. Note
82           that any explicit configuration settings specified on the command
83           line take precedence, and the user is not prompted for it.
84
85       --prompt
86           Query the user for locale, timezone, hostname and root password.
87           This is equivalent to specifying --prompt-locale,
88           --prompt-timezone, --prompt-hostname, --prompt-root-password in
89           combination.
90
91       --copy-locale, --copy-timezone, --copy-root-password
92           Copy a specific basic setting from the host. This only works in
93           combination with --root= (see above).
94
95       --copy
96           Copy locale, time zone and root password from the host. This is
97           equivalent to specifying --copy-locale, --copy-timezone,
98           --copy-root-password in combination.
99
100       --setup-machine-id
101           Initialize the system's machine ID to a random ID. This only works
102           in combination with --root=.
103
104       -h, --help
105           Print a short help text and exit.
106
107       --version
108           Print a short version string and exit.
109

EXIT STATUS

111       On success, 0 is returned, a non-zero failure code otherwise.
112

SEE ALSO

114       systemd(1), locale.conf(5), localtime(5), hostname(5), machine-id(5),
115       shadow(5), systemd-machine-id-setup(1), localectl(1), timedatectl(1),
116       hostnamectl(1)
117
118
119
120systemd 219                                               SYSTEMD-FIRSTBOOT(1)
Impressum