network: don't use "ifup -m"
[dracut.git] / modules.d / 98dracut-systemd / dracut-emergency.service
blob5a6d5250f71d909e3ae97f7fc0aaab047d757795
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
10 [Unit]
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
18 [Service]
19 Environment=HOME=/
20 Environment=DRACUT_SYSTEMD=1
21 Environment=NEWROOT=/sysroot
22 WorkingDirectory=/
23 ExecStart=/bin/dracut-emergency
24 ExecStopPost=-/bin/rm -f -- /.console_lock
25 Type=oneshot
26 StandardInput=tty-force
27 StandardOutput=inherit
28 StandardError=inherit
29 KillMode=process
30 IgnoreSIGPIPE=no
32 # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
33 # terminates cleanly.
34 KillSignal=SIGHUP