[pkg-cryptsetup-devel] Bug#548988: Bug#548988: cryptsetup - uuid usage differs from what devmapper expects

Jonas Meurer jonas at freesources.org
Wed Sep 30 12:42:22 UTC 2009


On 30/09/2009 Milan Broz wrote:
> Bastian Blank wrote:
> > I'm not sure, where this informations comes from, but LVM upstream
> > decided to use the UUID of CRYPT-TEMP-* to detect the temporary luks
> > devices. Also in the examples, they use CRYPT-PLAIN-* and CRYPT-LUKS1-*,
> > which is not set this way by the current version of cryptsetup.
> 
> The rule is simple - all dm devices should have UUID set.
> 
> for cryptsetup <= 1.0.6 it doesn't set dm-uuid at all.
> 
> for cryptsetup == 1.0.7 it set dm-uuid for luks device, but because of problems
> (people are running snapshots of the whole header and then dm-uuid is duplicated...)
> I changed it (see debian bug 538221 for example).
> 
> So now, all devices created by cryptsetup have DM-UUID set in the format
>  CRYPT-<devicetype>-[<uuid>-]<device name>
> 
> For example:
>  CRYPT-PLAIN-name
>  CRYPT-LUKS1-00000000000000000000000000000000-name
>  CRYPT-TEMP-name
> 
> (All dm devices have prefix which identifies subsystem - here CRYPT-, but we have LVM-, DMRAID-,
> MPATH, etc.)

i can verify that all dm-crypt devices have DM-UUID set correct on my
system with cryptsetup 1.1.0~rc1 installed. i guess this bug can be
closed once i uploaded cryptsetup 1.1.0~rc1 to debian/unstable.

> For udev rules, you should still detect temporary cryptsetup detect devices by name (because of
> old version of cryptsetup), but since version 1.1 it have also uuid prefix CRYPT-TEMP-.
> Name remains (temporary-cryptsetup-$PID)
> 
> The lvm code already contains proper rule for udev:
> 
> ENV{DM_UUID}=="CRYPT-TEMP-?*", GOTO="dm_last_rule"
> ENV{DM_UUID}!="?*", ENV{DM_NAME}=="temporary-cryptsetup-?*", GOTO="dm_last_rule"
> 
> 
> That's the story. What's the real problem now in this bug?
> The old cryptsetup do not set dm-uuid, but I see no real problem with that.

i understood the bugreport as request for consistent dm-uuids. beginning
with cryptsetup 1.1.0 this should be the case, so the bugreport will be
closed with the upload of cryptsetup 1.1.0(-rc1) to debian/unstable.

or did i miss something?

greetings,
 jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20090930/936a511f/attachment.pgp>


More information about the pkg-cryptsetup-devel mailing list