[PATCH] Fix attempt: search in kernel/drivers/ too

Christian Jaeger christian at jaeger.mine.nu
Wed Dec 10 22:55:54 UTC 2008


But as long as mod is 'dm_mod' and the kernel (2.6.27.7 in my case)
provides dm-mod, it still won't be found.

Signed-off-by: Christian Jaeger <christian at jaeger.mine.nu>
---
 debian/initramfs/cryptroot-hook |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/debian/initramfs/cryptroot-hook b/debian/initramfs/cryptroot-hook
index f8b197e..3243ebd 100644
--- a/debian/initramfs/cryptroot-hook
+++ b/debian/initramfs/cryptroot-hook
@@ -413,6 +413,15 @@ add_crypto_modules() {
 		found="yes"
 	done
 
+	if [ -z "$found" ]; then
+		for file in $(find "$MODULESDIR/kernel/drivers/" -name "$mod-*.ko"); do
+			altmod="${file##*/}"
+			altmod="${altmod%.ko}"
+			manual_add_modules "$altmod"
+			found="yes"
+		done
+	fi
+
 	for file in $(find "$MODULESDIR/kernel/crypto/" -name "${mod}_generic.ko"); do
 		altmod="${file##*/}"
 		altmod="${altmod%.ko}"
-- 
1.6.0.5


--------------040205070700080306060505
Content-Type: text/x-patch;
 name="0007-Fix-attempt-tr-_-in-the-module-name-and-try-again.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename*0="0007-Fix-attempt-tr-_-in-the-module-name-and-try-again.patch"



More information about the pkg-cryptsetup-devel mailing list