]> git.ipfire.org Git - thirdparty/grub.git/commit
luks2: Improve error reporting when decrypting/verifying key
authorPatrick Steinhardt <ps@pks.im>
Mon, 7 Sep 2020 15:27:50 +0000 (17:27 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 11 Sep 2020 13:48:13 +0000 (15:48 +0200)
commiteb77486141c3f42dfe1c94a5782e7f330dca54a3
tree1573afd8c216e9905bfc21c4e91bc15c9f259278
parent1066336dc88ef59556be91003388d8a1dfd0fd91
luks2: Improve error reporting when decrypting/verifying key

While we already set up error messages in both luks2_verify_key() and
luks2_decrypt_key(), we do not ever print them. This makes it really
hard to discover why a given key actually failed to decrypt a disk.

Improve this by including the error message in the user-visible output.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/luks2.c