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