chiark / gitweb /
plymouth: don't enable ask-password agent of plymouth is disabled
[elogind.git] / units / systemd-ask-password-plymouth.path
index 827f1385e88c98674c123250dbdb759c03db194c..ba592c7ce6ca7289090d482e978d79598e0fa453 100644 (file)
@@ -8,6 +8,10 @@
 [Unit]
 Description=Forward Password Requests to Plymouth Directory Watch
 DefaultDependencies=no
+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