crypt: dropped plymouth --has-active-vt check on passwd prompt
PATCH 1/1 crypt: dropped plymouth --has-active-vt check on passwd prompt
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 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
modules.d/90crypt/crypt-lib.sh +1 -1
@@ -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"
Signature · 1 line
1.7.5.3
A message that is not in the archive (sent off-list or not yet received): 1309470560-16173-1-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org
Quoted 13 lines · Amadeusz Å»oÅ‚nowski
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 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)modules.d/90crypt/crypt-lib.sh +0
-0
modules.d/90crypt/crypt-lib.sh ask_for_password() { · line 53
Quoted 8 lines
modules.d/90crypt/crypt-lib.sh +1
-1@@ -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"
pushed