cryptsetup fails for certain mapping names, regression from edgy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
The command `cryptsetup luksOpen /dev/DEVICE NAME' no longer works when NAME==DEVICE. It
used to work in edgy. For example, the command
# cryptsetup luksOpen /dev/sda6 sda6
fails (well, cryptsetup succeeds, but /dev/mapper/sda6 gets the "linear" target, so it's unusable).
More generally,
# cryptsetup luksOpen /dev/sda6 sda4
also fails. Both worked fine in edgy. A more detailed transcript follows:
The following used to work in edgy, but doesn't work after upgrading to feisty:
root@chucho:~# dmsetup ls | grep sda6
root@chucho:~#
root@chucho:~# cryptsetup luksOpen /dev/sda6 sda6
Enter LUKS passphrase:
key slot 0 unlocked.
Command successful.
root@chucho:~# mount /dev/mapper/sda6 /crypt
mount: unknown filesystem type 'crypto_LUKS'
root@chucho:~# dmsetup status sda6
0 18603207 linear
root@chucho:~# dmsetup remove sda6
This, however, does work in feisty:
root@chucho:~# cryptsetup luksOpen /dev/sda6 foo
Enter LUKS passphrase:
key slot 0 unlocked.
Command successful.
root@chucho:~# mount /dev/mapper/foo /crypt
root@chucho:~# df -hT /crypt
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/cs
ext3 8.8G 7.2G 1.2G 87% /crypt
root@chucho:~# dmsetup status foo
0 18602175 crypt
I suspect this is due to changes in the udev rules for devmapper devices. Perhaps the symlinks are colliding?