[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#312213: marked as done (initrd-tools: excessive amount of modules included in initrd)



Your message dated Mon, 05 May 2008 10:23:25 +0200
with message-id <1209975805.137804.28775.nullmailer@xanadu.blop.info>
and subject line initrd-tools has been removed from Debian, closing #312213
has caused the Debian Bug report #312213,
regarding initrd-tools: excessive amount of modules included in initrd
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
312213: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=312213
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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: pgpu0DNbjt6qo.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Version: 0.1.84.2+rm

The initrd-tools package has been removed from Debian testing, unstable and
experimental, so I am now closing the bugs that were still opened
against it.

For more information about this package's removal, read
http://bugs.debian.org/393092 . That bug might give the reasons why
this package was removed, and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.
-- 
Lucas


--- End Message ---

Reply to: