Browse Source

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
master
Max Resch 6 years ago committed by Harald Hoyer
parent
commit
705eb4eeb2
  1. 4
      modules.d/90crypt/cryptroot-ask.sh

4
modules.d/90crypt/cryptroot-ask.sh

@ -156,9 +156,9 @@ else @@ -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

Loading…
Cancel
Save