]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-firstboot.service
Merge pull request #18990 from yuwata/network-dhcpv6-use-domains
[thirdparty/systemd.git] / units / systemd-firstboot.service
CommitLineData
db9ecf05 1# SPDX-License-Identifier: LGPL-2.1-or-later
a7df2d1e 2#
418b9be5
LP
3# This file is part of systemd.
4#
5# systemd is free software; you can redistribute it and/or modify it
6# under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; either version 2.1 of the License, or
8# (at your option) any later version.
9
10[Unit]
11Description=First Boot Wizard
47542dc8 12Documentation=man:systemd-firstboot(1)
418b9be5
LP
13DefaultDependencies=no
14Conflicts=shutdown.target
b825ab1a 15After=systemd-remount-fs.service
361662f4 16Before=systemd-sysusers.service systemd-vconsole-setup.service sysinit.target first-boot-complete.target shutdown.target
a1e37871 17Wants=first-boot-complete.target
418b9be5 18ConditionPathIsReadWrite=/etc
e2680723 19ConditionFirstBoot=yes
418b9be5
LP
20
21[Service]
22Type=oneshot
23RemainAfterExit=yes
cdc6804b 24ExecStart=systemd-firstboot --prompt-locale --prompt-timezone --prompt-root-password
418b9be5
LP
25StandardOutput=tty
26StandardInput=tty
27StandardError=tty
416f7b3a
LP
28
29# Optionally, pick up basic fields from credentials passed to the service
30# manager. This is useful for importing this data from nspawn's
31# --set-credential= switch.
32LoadCredential=passwd.hashed-password.root
33LoadCredential=passwd.plaintext-password.root
34LoadCredential=passwd.shell.root
35LoadCredential=firstboot.locale
36LoadCredential=firstboot.locale-messages
37LoadCredential=firstboot.keymap
38LoadCredential=firstboot.timezone