hey, On 05/09/2009 Jonas Meurer wrote: > thanks for your bugreport. > > could you try to reproduce the bug with the cryptsetup from > debian/testing[1]? > > you can do so by installing (downgrading to) the cryptsetup 2:1.0.7-1 > package and regenerating the initramfs with > # update-initramfs -u -k $(uname -r) > > you might want to backup the working initramfs before. > > i guess that the bug is not related to version 2:1.0.7-2 of the > cryptsetup package, as nothing regarding device symlinks etc. changed > between -1 and -2.
please try the attached (yet untested) patch, and see whether that fixes the bug for you. you'll need to update the initramfs after applying the patch. greetings, jonas
--- /usr/share/initramfs-tools/hooks/cryptroot.orig
+++ /usr/share/initramfs-tools/hooks/cryptroot
@@ -301,6 +301,15 @@
dev=$(readlink -e "$dev")
fi
+ if [ "x${dev%/dev/dm-*}" = "x" ]; then
+ # try to detect corresponding symlink in /dev/mapper/
+ for dmdev in /dev/mapper/*; do
+ if [ "$(readlink -e "$dmdev")" = "$dev" ]; then
+ dev="$dmdev"
+ fi
+ done
+ fi
+
altdev="${dev#/dev/mapper/}"
if [ "$altdev" != "$dev" ]; then
echo "$altdev"
signature.asc
Description: Digital signature

