firstboot: Populate XKBLAYOUT and friends as well in vconsole.conf (#36275)
[systemd.io.git] / units / breakpoint-pre-switch-root.service.in
blob4c6334662c983b76288c20345cce3f2a4abf3a16
1 #  SPDX-License-Identifier: LGPL-2.1-or-later
3 #  This file is part of systemd.
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.
10 [Unit]
11 Description=Breakpoint Before Switching Root
12 Documentation=man:systemd-debug-generator(8)
13 AssertPathExists=/etc/initrd-release
14 DefaultDependencies=no
15 RefuseManualStart=yes
16 Conflicts=shutdown.target emergency.target
17 After=initrd.target initrd-parse-etc.service remote-fs.target systemd-vconsole-setup.service
18 Before=initrd-cleanup.service shutdown.target emergency.target
20 [Service]
21 Environment=SHELL_PROMPT_PREFIX="pre-switch-root "
22 Type=oneshot
23 ExecStartPre=-plymouth --wait quit
24 # Execute shell with "-" prefix to not consider the unit failed if it exits with
25 # a non-zero value
26 ExecStart=-{{SUSHELL}}
27 StandardInput=tty-force
28 StandardOutput=inherit
29 StandardError=inherit
30 KillMode=process
31 IgnoreSIGPIPE=no
32 # bash ignores SIGTERM
33 KillSignal=SIGHUP
35 # Unset locale for the console getty since the console has problems
36 # displaying some internationalized messages.
37 UnsetEnvironment=LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION