aboutsummaryrefslogtreecommitdiff
path: root/scripts/naskpass.initscript
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/naskpass.initscript')
-rwxr-xr-xscripts/naskpass.initscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/naskpass.initscript b/scripts/naskpass.initscript
index 5540667..98fd1dc 100755
--- a/scripts/naskpass.initscript
+++ b/scripts/naskpass.initscript
@@ -303,7 +303,9 @@ setup_mapping()
if [ ! -e "$NEWROOT" ]; then
if [ -x /bin/plymouth ] && plymouth --ping || [ $askpass_fallback -ne 0 ]; then
- message "naskpass does not work with playmouth, falling back to default askpass .."
+ if [ $askpass_fallback -eq 0 ]; then
+ message "naskpass does not work with plymouth, falling back to default askpass .."
+ fi
if ! crypttarget="$crypttarget" cryptsource="$cryptsource" \
$cryptkeyscript "$cryptkey" | $cryptopen; then
message "cryptsetup: cryptsetup failed, bad password or options?"