1 # This file is part of systemd.
3 # systemd is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as published by
5 # the Free Software Foundation; either version 2.1 of the License, or
6 # (at your option) any later version.
8 # See systemd.special(7) for details
11 Description=Dracut Emergency Shell
12 DefaultDependencies=no
13 After=systemd-vconsole-setup.service
14 Wants=systemd-vconsole-setup.service
15 Conflicts=emergency.service emergency.target
16 ConditionPathExists=!/lib/dracut/no-emergency-shell
20 Environment=DRACUT_SYSTEMD=1
21 Environment=NEWROOT=/sysroot
23 ExecStart=/bin/dracut-emergency
24 ExecStopPost=-/bin/rm -f -- /.console_lock
26 StandardInput=tty-force
27 StandardOutput=inherit
32 # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash