Comment 1 for bug 267192

Revision history for this message
Reinhard Tartler (siretart) wrote : Re: [Bug 267192] [NEW] Misleading cryptsetup error message

Peter Klotz <email address hidden> writes:

> root@ubuntu:~# cryptsetup luksOpen /dev/sdb1 crypt_rally2
> Enter LUKS passphrase:
> Command failed: No key available with this passphrase.
>
> Actually the supplied password was correct but kernel module dm_crypt
> is not loaded in this scenario.

After looking into the code (luks/keymanage.c) this is not something
easy to add. Checking for the module is not an option either, because
the kernel might have support for dm-crypt compiled in.

I'm CC'ing the upstream mailing list. Do you guys have any idea how this
could be solved? This bug was originaly filed at
https://launchpad.net/bugs/267192

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4