]>
Commit | Line | Data |
---|---|---|
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] | |
11 | Description=First Boot Wizard | |
47542dc8 | 12 | Documentation=man:systemd-firstboot(1) |
418b9be5 LP |
13 | DefaultDependencies=no |
14 | Conflicts=shutdown.target | |
b825ab1a | 15 | After=systemd-remount-fs.service |
361662f4 | 16 | Before=systemd-sysusers.service systemd-vconsole-setup.service sysinit.target first-boot-complete.target shutdown.target |
a1e37871 | 17 | Wants=first-boot-complete.target |
418b9be5 | 18 | ConditionPathIsReadWrite=/etc |
e2680723 | 19 | ConditionFirstBoot=yes |
418b9be5 LP |
20 | |
21 | [Service] | |
22 | Type=oneshot | |
23 | RemainAfterExit=yes | |
cdc6804b | 24 | ExecStart=systemd-firstboot --prompt-locale --prompt-timezone --prompt-root-password |
418b9be5 LP |
25 | StandardOutput=tty |
26 | StandardInput=tty | |
27 | StandardError=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. | |
32 | LoadCredential=passwd.hashed-password.root | |
33 | LoadCredential=passwd.plaintext-password.root | |
34 | LoadCredential=passwd.shell.root | |
35 | LoadCredential=firstboot.locale | |
36 | LoadCredential=firstboot.locale-messages | |
37 | LoadCredential=firstboot.keymap | |
38 | LoadCredential=firstboot.timezone |