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 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
28 Environment=DRACUT_SYSTEMD=1
29 Environment=NEWROOT=/sysroot
31 ExecStart=-/bin/dracut-pre-pivot
34 StandardError=syslog+console
38 # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash