[pkg-cryptsetup-devel] Bug#659235:

Claudio Imbrenda claudioimbrenda at gmail.com
Fri Feb 10 13:56:26 UTC 2012


the bug is in line 150 of /usr/share/initramfs-tools/hooks/cryptroot:

       if ! deps=$(vgs --noheadings -o pv_name $(echo "$node" | cut -d
'-' -f1)); then

if the name contains a dash, it is mangled. e.g. something like
"a--bcd-part" becomes.. "a", which is obviously wrong.
a simple solution is to replace that line with this line:

        if ! deps=$(vgs --noheadings -o pv_name $(echo "$node" | sed
-e 's/\([^-]\)-[^-].*/\1/g' -e 's/--/-/g' ) 2>/dev/null); then

which correctly yields "a-bcd".


please fix this ASAP because it's really a BIG problem for people
using full disk encryption.



Best regards,
Claudio





More information about the pkg-cryptsetup-devel mailing list