chiark / gitweb /
plymouth: don't enable ask-password agent of plymouth is disabled
[elogind.git] / units / systemd-ask-password-plymouth.path
index 8e5e512..ba592c7 100644 (file)
@@ -8,8 +8,10 @@
 [Unit]
 Description=Forward Password Requests to Plymouth Directory Watch
 DefaultDependencies=no
-Conflicts=shutdown.target
+Conflicts=shutdown.target systemd-ask-password-console.path systemd-ask-password-console.service
 Before=basic.target shutdown.target
+ConditionKernelCommandLine=!plymouth.enable=0
 
 [Path]
-DirectoryNotEmpty=/dev/.systemd/ask-password
+DirectoryNotEmpty=/run/systemd/ask-password
+MakeDirectory=yes