From 705eb4eeb26a852450befdfb8b2206e135495fd5 Mon Sep 17 00:00:00 2001 From: Max Resch Date: Wed, 3 Jul 2019 01:22:24 +0200 Subject: [PATCH] ask for a password on readkey failure continue asking for a password if readkey for cryptsetup input failed, e.g. wrong password in the password file --- modules.d/90crypt/cryptroot-ask.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules.d/90crypt/cryptroot-ask.sh b/modules.d/90crypt/cryptroot-ask.sh index 5d63d687..33a823c7 100755 --- a/modules.d/90crypt/cryptroot-ask.sh +++ b/modules.d/90crypt/cryptroot-ask.sh @@ -156,9 +156,9 @@ else info "Using '$keypath' on '$keydev'" readkey "$keypath" "$keydev" "$device" \ - | cryptsetup -d - $cryptsetupopts luksOpen "$device" "$luksname" + | cryptsetup -d - $cryptsetupopts luksOpen "$device" "$luksname" \ + && ask_passphrase=0 unset keypath keydev - ask_passphrase=0 break done fi