Package: initrd-tools Version: 0.1.81.1 Severity: important Tags: patch While hunting for a solution to my bug #312207, i came accross a problem in module_exists(). The shell replacement in there causes the find statement to search for to much files. A invocation like: module_exists drivers/md/dm-mod should result in a: find $MODULEDIR/kernel/drivers/md -name "dm-mod.ko" but i generates instead find $MODULEDIR/kernel/drivers -name "dm-mod.ko" This becomes a problem when mkinitrd tests whether a give modules is a scsi or ide module. It will conclude that modules like thermal or fan are scsi modules and needlessly include them into the initrd. The fix is simple and obvious: --- mkinitrd.orig 2005-06-06 11:38:19.000000000 +0200 +++ mkinitrd 2005-06-06 12:06:49.000000000 +0200 @@ -415,7 +415,7 @@ } module_exists() { - [ -n "$(find "$MODULEDIR/kernel/${1%%/*}" -name "${1##*/}.$o")" ] + [ -n "$(find "$MODULEDIR/kernel/${1%/*}" -name "${1##*/}.$o")" ] } print_module() { -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.11+tposs Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages initrd-tools depends on: ii coreutils [fileutils] 5.2.1-2 The GNU core utilities ii cpio 2.5-1.2 GNU cpio -- a program to manage ar ii cramfsprogs 1.1-6 Tools for CramFs (Compressed ROM F ii dash 0.5.2-5 The Debian Almquist Shell ii fileutils 5.2.1-2 The GNU file management utilities ii util-linux 2.12p-4 Miscellaneous system utilities -- no debconf information
Attachment:
pgpQrxdwTT1fl.pgp
Description: PGP signature