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