[PATCH] Fix attempt: tr _ - in the module name and try again

Christian Jaeger christian at jaeger.mine.nu
Wed Dec 10 23:02:11 UTC 2008


But it still doesn't work (yet)

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

diff --git a/debian/initramfs/cryptroot-hook b/debian/initramfs/cryptroot-hook
index 3243ebd..1e30b50 100644
--- a/debian/initramfs/cryptroot-hook
+++ b/debian/initramfs/cryptroot-hook
@@ -440,7 +440,12 @@ add_crypto_modules() {
 	fi
 
 	if [ -z "$found" ]; then
-		return 1
+		if echo "$mod"|grep -q _; then
+			add_crypto_modules "$(echo "$mod"|tr _ -)"
+			return $?
+		else
+			return 1
+		fi
 	fi
 
 	return 0
-- 
1.6.0.5


--------------040205070700080306060505
Content-Type: text/x-patch;
 name="0008-Fix-fix-search-these-without-appendix.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="0008-Fix-fix-search-these-without-appendix.patch"



More information about the pkg-cryptsetup-devel mailing list