crypt: dropped plymouth --has-active-vt check on passwd prompt
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Thu, 30 Jun 2011 21:49:20 +0000 (23:49 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 1 Jul 2011 08:15:26 +0000 (10:15 +0200)
As Ray Strode explains, plymouth --has-active-vt may fail if the user
passes console=ttyS0 or something other not corresponding to
console=tty0, because plymouth is outputing to the serial console and
not a VT in this case.

modules.d/90crypt/crypt-lib.sh

index 6680e2a..2797a7a 100644 (file)
@@ -47,7 +47,7 @@ ask_for_password() {
 
     { flock -s 9;
         # Prompt for password with plymouth, if installed and running.
-        if [ -x /bin/plymouth ] && /bin/plymouth --has-active-vt; then
+        if [ -x /bin/plymouth ]; then
             /bin/plymouth ask-for-password \
                 --prompt "$ply_prompt" --number-of-tries=$ply_tries \
                 --command="$ply_cmd"