[PATCH] cryptsetup-generator: block boot when querying passphrase.

Frederic Crozat fcrozat at suse.com
Thu Aug 4 07:46:33 PDT 2011


Ensure we wait for passphrase before starting tty1 or graphical display.
Needed when not using plymouth.
---
 src/cryptsetup-generator.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/cryptsetup-generator.c b/src/cryptsetup-generator.c
index a340218..6f3aa78 100644
--- a/src/cryptsetup-generator.c
+++ b/src/cryptsetup-generator.c
@@ -112,7 +112,8 @@ static int create_disk(
                 "DefaultDependencies=no\n"
                 "BindTo=%s dev-mapper-%%i.device\n"
                 "After=systemd-readahead-collect.service systemd-readahead-replay.service %s\n"
-                "Before=umount.target\n",
+                "Before=umount.target\n"
+                "Before=local-fs.target\n",
                 d, d);
 
         if (!nofail)
-- 
1.7.3.4


--=-DD95RqvSq0KVmcXmghds--



More information about the systemd-devel mailing list