[pkg-cryptsetup-devel] Bug#669861: Bug#669861: cryptsetup: Unable to select correct swap device

Jonas Meurer jonas at freesources.org
Sat Apr 21 14:22:52 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey Rodolfo,

Am 21.04.2012 15:18, schrieb Rodolfo García Peñas (kix):
> cryptsetup is unable to select the correct swap device, then is
> unable to decrypt the correct drive. I got this error:
> 
> update-initramfs: Generating /boot/initrd.img-3.2.0-2-686-pae 
> cryptsetup: WARNING: found more than one resume device candidate: 
> sda3_crypt 81c6f99f-d571-497c-a6db-759f4beb0b2d
> 
> But my swap device is:
> 
> root at hakata:~# dmesg | grep swap [  598.327480] Adding 4198972k
> swap on /dev/mapper/sda3_crypt.  Priority:-1 extents:1
> across:4198972k root at hakata:~# cat /etc/fstab | grep swap 
> /dev/mapper/sda3_crypt none            swap    sw              0
> 0 root at hakata:~#
> 
> On the other hand, I don't know where cryptsetup finds
> "81c6f99f-d571-497c-a6db-759f4beb0b2d", because my drives are:

the cryptroot initramfs hook script searches for resume devices in the
following files. Please send the content of all of them:

/etc/uswsusp.conf
/etc/suspend.conf
/proc/cmdline
/etc/initramfs-tools/conf.d/resume

> Then, uswsusp is unable to find /dev/dm-1 and then I cannot load
> the suspend image:
> 
> root at hakata:~# dmsetup ls sda2_crypt      (254, 0) sda3_crypt
> (254, 1) root at hakata:~#
> 
> root at hakata:~# cat /etc/uswsusp.conf | grep dev resume device =
> /dev/dm-1 root at hakata:~#

I guess that /dev/dm-1 is correct. /dev/mapper/sda3_crypt should be a
symlink to /dev/dm-1. That's why sda3_crypt (the correct resume
device) is detected correctly by the cryptroot initramfs hook script.

The problematic part is that the UUID
81c6f99f-d571-497c-a6db-759f4beb0b2d is detected as well. I'm pretty
sure that one of the files listed above contains the reason for that.

Regards,
 jonas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPksK2AAoJEFJi5/9JEEn+DlIP/Rn/t9uw6loiD2BBOot5BV65
bwPadrG0eY98tayYmuBtN8xbjPoUHjSWzxWegKVmFW0nc2g5KZ3CwxGZ3GCPoNJc
s3Ai8PaF+/NPc/yXOOE2uKy1nsZTZKcSwLYtq2oltnSNDKLc5r3PaPvwpIfIri+e
RxNWZQpRkT6o+tjV82KtNvqSsn3ehQeWJNwJA30qcTxHX/0jNR21T6FZSfua3JKg
sNENzR2E7mhJE2Q1D3RSXhDHXK6/MhsMWfRfam3jn/TOqfVRThDIKMBD7sfiIDgJ
tMdmRjM1fSxwDqp1AhHusVzWCBZh3kIBlydVsHEFEsbR7s/EqbGrnp4w3TeZFJj+
IrhxRmnkgc09Hx9ocLTSou1uImJ5kYwFjU84qe85E1Ff647S4nZKQIoqF7W9O79y
DbAi/RYRpieyC1OiNjtbauPUOXgul7TyhC0eq71xF/GPP5atF8Zt+kWQRIXWUVvl
G0VLhn56G71S1e1Tucdw3NtFAThl1YY7MoBcC7OAx0yEmJ5cA9mh3N++h8bJnf9u
s4nRQSwUAWD4AAMHDebgPGPn/TBU4ia9dS3kQZhllZb19kAH7bZ2j+1n9kf20rA4
LP/kdJ2zPNnNuFrAXvMbqmpC0dVeNwYHnB5Kg582AbS6c0qJo7niDpzvyg0Th/km
/He4i+xkb0WzlWh4irIV
=3U92
-----END PGP SIGNATURE-----





More information about the pkg-cryptsetup-devel mailing list