chiark / gitweb /
plymouth: introduce plymouth.enable=0 kernel command line switch
[elogind.git] / units / plymouth-start.service
index 61cb82cde4ad3518680363fd78e9efa43d72e01f..f618257a937babb57bce4fa4f9d9e050aca38e79 100644 (file)
@@ -12,7 +12,11 @@ Wants=systemd-ask-password-plymouth.path
 After=systemd-vconsole-setup.service udev-settle.service
 Before=systemd-ask-password-plymouth.service
 
+# Dracut informs us with this flag file if plymouth is already running
+ConditionPathExists=!/run/plymouth/pid
+ConditionKernelCommandLine=!plymouth.enable=0
+
 [Service]
-ExecStart=/sbin/plymouthd --mode=boot
+ExecStart=/sbin/plymouthd --mode=boot --pid-file=/run/plymouth/pid
 ExecStartPost=-/bin/plymouth --show-splash
 Type=forking