From: Max Resch Date: Tue, 2 Jul 2019 23:22:24 +0000 (+0200) Subject: ask for a password on readkey failure X-Git-Tag: 050~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=705eb4eeb26a852450befdfb8b2206e135495fd5;p=thirdparty%2Fdracut.git 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 --- diff --git a/modules.d/90crypt/cryptroot-ask.sh b/modules.d/90crypt/cryptroot-ask.sh index 5d63d6871..33a823c7b 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