[Pkg-cryptsetup-devel] Bug#397454: cryptsetup: root and swap on lvm on crypto can result in boot failure

David Härdeman david at hardeman.nu
Tue Nov 7 14:46:57 CET 2006

Package: cryptsetup
Version: 2:1.0.4-4
Severity: serious

Starting with 2:1.0.4-4, the cryptsetup initramfs scripts will also try to
setup the swap partition in order to support (u)swsusp.

In the case where both root and swap use the same underlying dm-crypt
device, this will lead to duplicate entries in /conf/conf.d/cryptroot in
the initramfs image and the boot will fail.

The fix is simply to check in the initramfs script whether a device has
already been setup, and if so - ignore the second entry. This will work
with LVM/etc without changes as the same dm-crypt device can't be a
physical volume for several LVM vg's so no additional setup is necessary
for the second device.

I will commit a fix for this later today, updated package should be
included in Etch.

David Härdeman

More information about the Pkg-cryptsetup-devel mailing list