[dm-crypt] Re: [Bug 267192] [NEW] Misleading cryptsetup error message [PATCH]

Milan Broz mbroz at redhat.com
Wed Sep 10 16:50:29 BST 2008

Reinhard Tartler wrote:
> Milan Broz writes:
>> loading of dm_crypt is not cryptsetup job.
>> Device-mapper has already autoloading of necessary target modules built in.
>> You just need device-mapper core initialized (dm_mod kernel module loaded).
>> It just "simply works" on default configuration:
>> # lsmod
>> Module                  Size  Used by
>> dm_mod                 48656  0
> I see, but couldn't cryptsetup at least warn if the running system has
> not even dm_mod loaded instead of indicating the user had entered a
> wrong passphrase?

Ah so, yep, that's not correct. Interesting that it write error on my
gentoo system but not on other distros...

I think attached patch could be merged to upstream too?

Anyway, the Live CD supporting cryptsetup probably should load dm_mod too
by default (target modules, like dm_crypt, are then loaded automagically).

mbroz at redhat.com

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cryptsetup-detect-dm.patch
Url: https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20080910/2f314b1f/attachment-0001.diff 

More information about the ubuntu-devel mailing list