[pkg-cryptsetup-devel] Bug#659235: cryptsetup: Fails to detect crypted devices on LVM
Milan Broz
mbroz at redhat.com
Thu Feb 9 12:02:56 UTC 2012
On 02/09/2012 12:33 PM, Kai Weber wrote:
> Calling hook cryptroot
> cryptsetup: WARNING: failed to find deps for vg--sda-root
> cryptsetup: FAILURE: could not determine configuration for vg--sda-root
> ....
>
> The result of the warning/failure is a missing cryptroot file in initrd.
> Maybe a problem with the (strange) naming of my LVM volume group (vg-sda)?
it could be - note that lvm uses dash ("-") to separate VG and LV name
in kernel device-mapper, so all other dashes are doubled (that's why
you see vg--sda-root).
Either the script should use /dev/VG/LV path (instead of /dev/mapper/...)
or you should decode lvm name using dmsetup:
# dmsetup splitname vg--sda-root
VG LV LVLayer
vg-sda root
(there is --noheading as well)
just FYI...
Milan
More information about the pkg-cryptsetup-devel
mailing list