2020-11-09 04:23:58 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 16:35:03 +00:00
|
|
|
#
|
2014-07-07 13:05:37 +00:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=First Boot Wizard
|
2014-08-28 20:01:44 +00:00
|
|
|
Documentation=man:systemd-firstboot(1)
|
2022-09-15 13:54:18 +00:00
|
|
|
|
|
|
|
ConditionPathIsReadWrite=/etc
|
|
|
|
ConditionFirstBoot=yes
|
|
|
|
|
2014-07-07 13:05:37 +00:00
|
|
|
DefaultDependencies=no
|
2023-05-25 11:36:17 +00:00
|
|
|
After=systemd-remount-fs.service systemd-sysusers.service systemd-tmpfiles-setup.service
|
2020-09-06 19:23:36 +00:00
|
|
|
Wants=first-boot-complete.target
|
2023-05-25 10:26:37 +00:00
|
|
|
Before=first-boot-complete.target sysinit.target
|
2022-09-15 13:54:18 +00:00
|
|
|
Conflicts=shutdown.target
|
|
|
|
Before=shutdown.target
|
2014-07-07 13:05:37 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2019-12-18 08:14:57 +00:00
|
|
|
ExecStart=systemd-firstboot --prompt-locale --prompt-timezone --prompt-root-password
|
2014-07-07 13:05:37 +00:00
|
|
|
StandardOutput=tty
|
|
|
|
StandardInput=tty
|
|
|
|
StandardError=tty
|
2021-03-11 10:47:57 +00:00
|
|
|
|
|
|
|
# Optionally, pick up basic fields from credentials passed to the service
|
|
|
|
# manager. This is useful for importing this data from nspawn's
|
|
|
|
# --set-credential= switch.
|
2021-05-02 15:05:48 +00:00
|
|
|
LoadCredential=passwd.hashed-password.root
|
|
|
|
LoadCredential=passwd.plaintext-password.root
|
|
|
|
LoadCredential=passwd.shell.root
|
|
|
|
LoadCredential=firstboot.locale
|
|
|
|
LoadCredential=firstboot.locale-messages
|
|
|
|
LoadCredential=firstboot.keymap
|
|
|
|
LoadCredential=firstboot.timezone
|