[pkg-cryptsetup-devel] Bug#758788: Bug#758788: Bug#758788: cryptsetup: Passphrase caching broken in decrypt_keyctl

Luc Maisonobe luc at spaceroots.org
Fri Oct 3 19:15:24 UTC 2014


Le 03/10/2014 17:34, Jonas Meurer a écrit :
> Hey Marek and Luc,

Hi Jonas,

> 
> Am 03.09.2014 um 09:46 schrieb Luc Maisonobe:
>> Hi encountered the exact same problem on a laptop with two different
>> encrypted partition (one for a LVM on a SSD and one for a LVM on a
>> HDD).
> 
> I failed to reproduce the bug you discovered so far. Can you please give
> the latest packages from
> https://people.debian.org/~mejo/debian/mejo-unstable/ a try and see
> whether decrypt_keyctl still doesn't work for you?

The new packages allow to boot, but I still have to enter the key twice,
once for each encrypted device.

> 
> In case that you still encounter the bug, please paste your full
> /etc/fstab and /etc/crypttab again.

Here they are:

/etc/fstab:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/vg--ssd-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=4d228296-ceae-45c5-bbeb-86677a4fdfe2 /boot           ext2
defaults        0       2
/dev/mapper/vg--hdd-home /home           ext4    defaults        0       2
/dev/mapper/vg--ssd-usr /usr            ext4    defaults        0       2
/dev/mapper/vg--ssd-var /var            ext4    defaults        0       2
/dev/mapper/vg--hdd-swap_1 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
# /dev/sdc1       /media/usb0     auto    rw,user,noauto  0       0
# /dev/sdc2       /media/usb1     auto    rw,user,noauto  0       0



/etc/crypttab:

sdb1_crypt UUID=9aa983b5-0224-406b-a177-7481162c6172
sda5_sdb1_common_key luks,keyscript=decrypt_keyctl
sda5_crypt UUID=3764df68-de26-4a24-a7dc-1498cb6b20ab
sda5_sdb1_common_key luks,keyscript=decrypt_keyctl


Note that the two partitions contain physical volumes for LVM, as shown
here:

root at marislae:~# pvdisplay
  --- Physical volume ---
  PV Name               /dev/mapper/sda5_crypt
  VG Name               vg-hdd
  PV Size               698,40 GiB / not usable 0
  Allocatable           yes (but full)
  PE Size               4,00 MiB
  Total PE              178789
  Free PE               0
  Allocated PE          178789
  PV UUID               E1pkgZ-BFN4-1JFd-4HGA-YW1B-XXww-mubuR1

  --- Physical volume ---
  PV Name               /dev/mapper/sdb1_crypt
  VG Name               vg-ssd
  PV Size               29,82 GiB / not usable 2,84 MiB
  Allocatable           yes (but full)
  PE Size               4,00 MiB
  Total PE              7632
  Free PE               0
  Allocated PE          7632
  PV UUID               eaY3yu-PvoQ-1u6o-P7tK-wpRB-tVUJ-sWyMqh

root at marislae:~#


best regards,
Luc

> 
> Kind regards,
>  jonas
> 



More information about the pkg-cryptsetup-devel mailing list