cryptsetup checks LUKS offset incorrectly with detached header
Issue 131 by calmofthest... on 2012-06-05 16:37:31:
<b>What steps will reproduce the problem?</b>
See attached 'reproduction.txt'
<b>What is the expected output? What do you see instead?</b>
The mapping should be correctly formatted/opened with the detached header, since the underlying device is large enough to support the offset and the header is large enough to hold all keyslots.
Instead, cryptsetup complains the header is too small. Enlarging the header (even sparsly) or decreasing the payload alignment will mask the problem.
<b>What version of the product are you using? On what operating system?</b>
1.4.3 downloaded from this site a few minutes ago on Debian Wheezy. Issue first noticed on Debian Wheezy (cryptsetup version 1.4.1)
<b>Please provide any additional information below.</b>
For those seeking a workaround, just make your LUKS header a sparse file as large as the underlying device.