cryptsetup: improve password prompt text
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Fri, 19 Aug 2022 07:01:56 +0000 (09:01 +0200)
committerAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Fri, 19 Aug 2022 07:01:56 +0000 (09:01 +0200)
commitb6c0bd11fc77e1044db77802b00f50a724f341ba
tree188f742c502cbb488b0338ee9e7cf530fc562d30
parent80821405da3b611900fd46c4b43dc43df1615b60
cryptsetup: improve password prompt text

Instead of always asking for passphrase, if the device has LUKS2 header check:
- If only regular passphrases are registered, ask for passphrase.
- If only recovery keys are registered, ask for recovery key.
- If both regular passphrases and recovery keys are registered, ask for
passphrase or recovery key.
src/cryptsetup/cryptsetup.c