]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - modules.d/98systemd/dracut-cmdline.service
systemd: changes for new initrd services
[thirdparty/dracut.git] / modules.d / 98systemd / dracut-cmdline.service
index 1ed50a91faccaa08a41ec19829e9c05342ca6943..33a37f9f8dff2842ded31d9b41fdc23e7053dcbe 100644 (file)
@@ -8,12 +8,19 @@
 # See systemd.special(7) for details
 
 [Unit]
-Description=Dracut cmdline hook
+Description=dracut cmdline hook
+Documentation=man:dracut-cmdline.service(8)
 DefaultDependencies=no
 Before=dracut-pre-udev.service
+Before=systemd-vconsole-setup.service
 After=systemd-journald.socket
 Wants=systemd-journald.socket
 ConditionPathExists=/etc/initrd-release
+ConditionPathExistsGlob=|/etc/cmdline.d/*.conf
+ConditionDirectoryNotEmpty=|/lib/dracut/hooks/cmdline
+ConditionKernelCommandLine=|rd.break=cmdline
+ConditionKernelCommandLine=|resume
+ConditionKernelCommandLine=|noresume
 
 [Service]
 Type=oneshot
@@ -22,6 +29,7 @@ StandardInput=null
 StandardOutput=syslog
 StandardError=syslog+console
 KillMode=process
+RemainAfterExit=yes
 
 # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
 # terminates cleanly.