mirror of
https://github.com/systemd/systemd.git
synced 2024-12-05 08:13:48 +08:00
a1e3787148
Make sure systemd-firstboot completes before reaching first-boot-complete.target and thus marking the first boot as completed. This way, it is guaranteed that systemd-firstboot has a chance to complete provisioning at least once, even in cases of the first boot getting aborted early.
28 lines
850 B
Desktop File
28 lines
850 B
Desktop File
# SPDX-License-Identifier: LGPL-2.1+
|
|
#
|
|
# 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
|
|
Documentation=man:systemd-firstboot(1)
|
|
DefaultDependencies=no
|
|
Conflicts=shutdown.target
|
|
After=systemd-remount-fs.service
|
|
Before=systemd-sysusers.service sysinit.target first-boot-complete.target shutdown.target
|
|
Wants=first-boot-complete.target
|
|
ConditionPathIsReadWrite=/etc
|
|
ConditionFirstBoot=yes
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=systemd-firstboot --prompt-locale --prompt-timezone --prompt-root-password
|
|
StandardOutput=tty
|
|
StandardInput=tty
|
|
StandardError=tty
|