cryptsetup luksFormat fails with -s <keysize>
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I installed beta2 of 14.04 yesterday. Today, I am trying to manually create an encrypted partition. If I specify a key size to cryptsetup with -s, cryptsetup fails as follows.
root@slab:~# cryptsetup -y -s 128 luksFormat /dev/sda6
WARNING!
========
This will overwrite data on /dev/sda6 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
device-mapper: reload ioctl on failed: Invalid argument
Failed to open temporary keystore device.
device-mapper: remove ioctl on temporary-
device-mapper: reload ioctl on temporary-
device-mapper: remove ioctl on temporary-
device-mapper: remove ioctl on temporary-
device-mapper: remove ioctl on temporary-
device-mapper: remove ioctl on temporary-
After the above, luksDump shows all 8 key slots as DISABLED.
Without -s, cryptsetup will succeed, as follows.
root@slab:~# cryptsetup -y luksFormat /dev/sda6
WARNING!
========
This will overwrite data on /dev/sda6 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
root@slab:~#
Other info:
root@slab:~# lsb_release -rd
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04
root@slab:~# apt-cache policy cryptsetup
cryptsetup:
Installed: 2:1.6.1-1ubuntu1
Candidate: 2:1.6.1-1ubuntu1
Version table:
*** 2:1.6.1-1ubuntu1 0
500 http://
100 /var/lib/
Status changed to 'Confirmed' because the bug affects multiple users.