]> git.ipfire.org Git - thirdparty/grub.git/commit
disk/cryptodisk: Allow user to retry failed passphrase
authorForest <forestix@nom.one>
Tue, 7 May 2024 00:07:30 +0000 (17:07 -0700)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 9 May 2024 13:30:31 +0000 (15:30 +0200)
commit386b59ddb42fa3f86ddfe557113b25c8fa16f88c
tree2dd71988be96039a4a49b5d1eca44170d81d8341
parent99b4c0c3841bf71b0f2ef83607e9d6f13874c67c
disk/cryptodisk: Allow user to retry failed passphrase

Give the user a chance to re-enter their cryptodisk passphrase after a typo,
rather than immediately failing (and likely dumping them into a GRUB shell).

By default, we allow 3 tries before giving up. A value in the
cryptodisk_passphrase_tries environment variable will override this default.

The user can give up early by entering an empty passphrase, just as they
could before this patch.

Signed-off-by: Forest <forestix@nom.one>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
docs/grub.texi
grub-core/disk/cryptodisk.c