]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemd-ask-password: make sure directory watch is started before cryptsetup (#3850)
authortblume <Thomas.Blume@suse.com>
Tue, 2 Aug 2016 12:55:25 +0000 (14:55 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 2 Aug 2016 12:55:25 +0000 (08:55 -0400)
The password directory watch should get ordered before cryptsetup to make sure
that the password for unlocking the crypt device gets prompted.

units/systemd-ask-password-console.path
units/systemd-ask-password-wall.path

index 2949635feae0cfbd7f2b4262a2343d436b94efaa..7899ae788faaf6d8b56376f562ea71fa6f18df1c 100644 (file)
@@ -11,7 +11,7 @@ Documentation=man:systemd-ask-password-console.service(8)
 DefaultDependencies=no
 Conflicts=shutdown.target
 After=plymouth-start.service
-Before=paths.target shutdown.target
+Before=paths.target shutdown.target cryptsetup.target
 ConditionPathExists=!/run/plymouth/pid
 
 [Path]
index 95ec9bc8a02b261eef49a8a3ba393f4b97a53db2..a3ca61725685decb3ac1b5e3e96e07a2b8d744ee 100644 (file)
@@ -10,7 +10,7 @@ Description=Forward Password Requests to Wall Directory Watch
 Documentation=man:systemd-ask-password-console.service(8)
 DefaultDependencies=no
 Conflicts=shutdown.target
-Before=paths.target shutdown.target
+Before=paths.target shutdown.target cryptsetup.target
 
 [Path]
 DirectoryNotEmpty=/run/systemd/ask-password