[pkg-cryptsetup-devel] Bug#532579: Bug#532579: cryptsetup: fails to resume from lvm on crypt when resume device is /dev/dm-X

Jonas Meurer jonas at freesources.org
Sun Sep 6 09:24:08 UTC 2009


hey,

On 10/06/2009 Evgeni Golov wrote:
> I have the following setup on my laptop:
> hda1 plain root
> hda2 luks with lvm ontop
> lvm1 swap
> lvm2 home
> 
> I use the passdev script and LABELs/UUIDs everywhere.
> 
> fstab:
> LABEL=root	/		ext3		noatime,errors=remount-ro	0	1
> LABEL=swap	none		swap		sw		0	0
> LABEL=home	/home		ext3		noatime		0	0
> 
> crypttab:
> crypt	UUID=44dd50d4-e9a0-4bbf-8ba3-29434e77dba3 \
> 	/dev/disk/by-label/usbext3:/keyfile-chiisai.luks \
> 	luks,keyscript=/lib/cryptsetup/scripts/passdev,tries=1
> 
> /proc/cmdline:
> BOOT_IMAGE=/boot/vmlinuz-2.6.30-rc8-686 root=UUID=be7763cd-158a-4d70-bfb7-557363fb968b ro quiet splash hpet=force
> 
> My swap can be accessed via /dev/mapper/vg--crypt-swap or /dev/dm-1.
> uswsusp enters /dev/dm-1 in /etc/uswsusp.conf and that seems to break cryptsetup
> (I think in canonical_device()). When I manually add /dev/mapper/... to
> /etc/initramfs-tools/conf.d/resume everything is ok, and my system can resume,
> but when it's not there, cryptsetup thinks it has nothing to do, does not copy
> passdev and conf.d/cryptroot to the initramfs and my system cant resume.
> 
> Is there anything cryptsetup could do about this?

please test the attached (yet untested) patch and see whether that fixes
the bug for you.

greetings,
 jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cryptroot-hook.diff
Type: text/x-diff
Size: 464 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20090906/7fdb2b10/attachment.diff>
-------------- 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/20090906/7fdb2b10/attachment.pgp>


More information about the pkg-cryptsetup-devel mailing list