[Pkg-cryptsetup-devel] Bug#401370: cryptsetup: the initramfs hook script should add the "cbc" module (needed for 2.6.19 and LUKS)

Michael Olbrich michael.olbrich at gmx.net
Sun Dec 3 00:28:40 CET 2006


Package: cryptsetup
Version: 2:1.0.4+svn16-1
Severity: normal


CBC is optional in 2.6.19 and can be compiled as a module. LUKS uses cbc
by default.
I needed the following patch to create a working initrd:
------------
--- /usr/share/initramfs-tools/hooks/cryptroot.old      2006-12-02
21:26:06.000000000 +0100
+++ /usr/share/initramfs-tools/hooks/cryptroot  2006-12-02
21:04:07.000000000 +0100
@@ -364,7 +364,7 @@
 
 # Unless MODULES = "dep", we always add a basic subset of modules/tools
 if [ "$MODULES" != "dep" ]; then
-	for mod in dm_mod dm_crypt aes sha256; do
+	for mod in dm_mod dm_crypt aes sha256 cbc; do
 		manual_add_modules $mod
 	done
 	copy_exec /sbin/cryptsetup /sbin
------------
As far as I can tell this does not break older kernels.
manual_add_modules seems to ignore missing modules.


-- System Information:
Debian Release: 4.0
  APT prefers experimental
  APT policy: (500, 'experimental'), (500, 'unstable'), (300, 'testing'), (150, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19-mix
Locale: LANG=en_US.iso885915, LC_CTYPE=en_US.iso885915 (charmap=ISO-8859-15)

Versions of packages cryptsetup depends on:
ii  dmsetup  2:1.02.08-1                     The Linux Kernel Device Mapper use
ii  libc6    2.5-0exp3                       GNU C Library: Shared libraries
ii  libdevma 2:1.02.08-1                     The Linux Kernel Device Mapper use
ii  libgcryp 1.2.3-2                         LGPL Crypto library - runtime libr
ii  libgpg-e 1.4-2                           library for common error values an
ii  libpopt0 1.10-3                          lib for parsing cmdline parameters
ii  libuuid1 1.39+1.40-WIP-2006.11.14+dfsg-1 universally unique id library

cryptsetup recommends no packages.

-- no debconf information




More information about the Pkg-cryptsetup-devel mailing list