[pkg-cryptsetup-devel] Bug#659688: cryptsetup: LVM on cryptsetup won't boot

Roland Mas lolando at debian.org
Mon Feb 13 08:35:13 UTC 2012


Package: cryptsetup
Version: 2:1.4.1-2
Severity: critical

Note that although this bug was introduced at version 2:1.4.1-1, it is
different from #659235: my PVs and LVs and VGs don't have dashes in
their name.

The current sequence: grub loads the kernel and the initramfs; the
kernel boots; the initramfs looks for the root filesystem but cannot
find it because it's not available yet; cryptsetup asks for a
passphrase, which I type; "cryptsetup: lvm fs found but no lvm
configured".  After some time I get dropped into a shell.  In that
shell, I can see the LVs as inactive, and I enable them with "lvm
lvchange -P -a y vg_mirexpress/root" (and ditto for vg_mirexpress/swap),
then ^D and the boot sequence starts again normally (it reloads my
hibernated system).

It's possible that the problem comes from the need for -P (--partial) in
the commands I quote: as may be found in the configuration snippets
below, the LUKS key to one of the PVs used in LVM is stored on the
filesystem on another LV of the same VG; this means that the first
activation of the VG needs to be done with the -P/--partial flag, so
the available LVs (including root) are activated and the boot sequence
may proceed.

For extra reference, my setup looks like this: three physical drives
(one "smallish" SSD, two "big" rotating disks).  Partitions 1 on the SSD
and the disks are assembled into /dev/md/boot, which is ext4 and used as
/boot.  Partitions 2 on the SSD and the disks are assembled into
/dev/md/triple_patte, which is encrypted (with a passphrase) and then
used as a PV for LVM.  Partitions 3 only exist on the disks, are
assembled into /dev/md/obelix, which is encrypted (with a keyfile) and
used as another PV.

Roland.

-- Package-specific info:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20120213/d3d75aa8/attachment.ksh>
-------------- next part --------------

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-1-686-pae (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cryptsetup depends on:
ii  debconf [debconf-2.0]  1.5.41
ii  dmsetup                2:1.02.67-2
ii  libc6                  2.13-26
ii  libcryptsetup4         2:1.4.1-2
ii  libpopt0               1.16-3

cryptsetup recommends no packages.

Versions of packages cryptsetup suggests:
ii  busybox                                 1:1.19.3-5
ii  dosfstools                              3.0.12-1
ii  initramfs-tools [linux-initramfs-tool]  0.99
ii  liblocale-gettext-perl                  1.05-7+b1
ii  udev                                    175-3

-- debconf information:
  cryptsetup/prerm_active_mappings: true

-- 
Roland Mas

When I eat a biscuit, it stays eaten!
  -- Arthur Dent, in So Long, and Thanks for All the Fish (Douglas Adams)


More information about the pkg-cryptsetup-devel mailing list