2020-11-09 04:23:58 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 16:35:03 +00:00
|
|
|
#
|
2010-09-15 22:36:41 +00:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-11 22:20:58 +00:00
|
|
|
# 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
|
2010-09-15 22:36:41 +00:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
2023-05-31 13:59:11 +00:00
|
|
|
Description=Virtual Console Setup
|
2012-06-25 10:00:43 +00:00
|
|
|
Documentation=man:systemd-vconsole-setup.service(8) man:vconsole.conf(5)
|
2022-09-15 13:54:18 +00:00
|
|
|
|
|
|
|
ConditionPathExists=/dev/tty0
|
|
|
|
|
2010-09-15 22:36:41 +00:00
|
|
|
DefaultDependencies=no
|
2023-05-19 13:58:18 +00:00
|
|
|
Before=sysinit.target
|
2017-01-31 05:34:33 +00:00
|
|
|
Before=initrd-switch-root.target shutdown.target
|
2010-09-15 22:36:41 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2023-07-13 08:22:54 +00:00
|
|
|
# This service will be restarted by udev whenever a new vtcon device appears.
|
|
|
|
# If the previous instance is still running, it shall be interrupted without
|
|
|
|
# error.
|
|
|
|
SuccessExitStatus=SIGTERM
|
2020-03-05 06:11:09 +00:00
|
|
|
RemainAfterExit=yes
|
2023-07-13 08:22:54 +00:00
|
|
|
|
2021-05-16 09:55:36 +00:00
|
|
|
ExecStart={{ROOTLIBEXECDIR}}/systemd-vconsole-setup
|
2023-07-13 08:22:54 +00:00
|
|
|
|
2023-06-08 12:09:36 +00:00
|
|
|
ImportCredential=vconsole.*
|