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.
11 Description=Breakpoint Before Switching Root
12 Documentation=man:systemd-debug-generator(8)
13 AssertPathExists=/etc/initrd-release
14 DefaultDependencies=no
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
21 Environment=SHELL_PROMPT_PREFIX="pre-switch-root "
23 ExecStartPre=-plymouth --wait quit
24 # Execute shell with "-" prefix to not consider the unit failed if it exits with
26 ExecStart=-{{SUSHELL}}
27 StandardInput=tty-force
28 StandardOutput=inherit
32 # bash ignores SIGTERM
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