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

Evgeni Golov evgeni at debian.org
Wed Jun 10 10:28:45 UTC 2009


Package: cryptsetup
Version: 2:1.0.6+20090405.svn49-1
Severity: normal

Hi,

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?

Regards
Evgeni

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-rc8-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cryptsetup depends on:
ii  dmsetup                      2:1.02.30-3 The Linux Kernel Device Mapper use
ii  libc6                        2.9-13      GNU C Library: Shared libraries
ii  libdevmapper1.02.1           2:1.02.30-3 The Linux Kernel Device Mapper use
ii  libpopt0                     1.14-4      lib for parsing cmdline parameters
ii  libuuid1                     1.41.6-1    Universally Unique ID library

cryptsetup recommends no packages.

Versions of packages cryptsetup suggests:
ii  dosfstools                    3.0.3-1    utilities for making and checking 
ii  initramfs-tools [linux-initra 0.93.2     tools for generating an initramfs
ii  udev                          0.141-1    /dev/ and hotplug management daemo

-- no debconf information





More information about the pkg-cryptsetup-devel mailing list