network: don't use "ifup -m"
[dracut.git] / modules.d / 98dracut-systemd / dracut-pre-pivot.service
blobf5a85ce029fb4dd810b5c39ad3e5327ae0fe43ec
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 pre-pivot and cleanup hook
12 Documentation=man:dracut-pre-pivot.service(8)
13 After=initrd.target initrd-parse-etc.service sysroot.mount
14 After=dracut-initqueue.service dracut-pre-mount.service dracut-mount.service
15 Before=initrd-cleanup.service
16 Wants=remote-fs.target
17 After=remote-fs.target
18 ConditionPathExists=/usr/lib/initrd-release
19 ConditionDirectoryNotEmpty=|/lib/dracut/hooks/pre-pivot
20 ConditionDirectoryNotEmpty=|/lib/dracut/hooks/cleanup
21 ConditionKernelCommandLine=|rd.break=pre-pivot
22 ConditionKernelCommandLine=|rd.break=cleanup
23 ConditionKernelCommandLine=|rd.break
24 ConditionPathExists=|/dev/root
25 ConditionPathExists=|/dev/nfs
27 [Service]
28 Environment=DRACUT_SYSTEMD=1
29 Environment=NEWROOT=/sysroot
30 Type=oneshot
31 ExecStart=-/bin/dracut-pre-pivot
32 StandardInput=null
33 StandardOutput=syslog
34 StandardError=syslog+console
35 KillMode=process
36 RemainAfterExit=yes
38 # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
39 # terminates cleanly.
40 KillSignal=SIGHUP