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

Bug#347720: marked as done (initrd-tools: mkinitrd loads too many modules, sometimes )



Your message dated Mon, 05 May 2008 10:23:24 +0200
with message-id <1209975804.632296.28677.nullmailer@xanadu.blop.info>
and subject line initrd-tools has been removed from Debian, closing #347720
has caused the Debian Bug report #347720,
regarding initrd-tools: mkinitrd loads too many modules, sometimes
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.)


-- 
347720: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347720
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: initrd-tools
Version: 0.1.81.1
Severity: normal
Tags: patch

mkinitrd finds too many modules when looking for driver modules. On my
system (using megaraid for boot drive, aic7xxx for addional HDs and a
promise IDE controller for a backup HD), this caused problems because
aic7xxx would suddenly be loaded before megaraid, screwing up the SCSI
device order.

The reason for this behavior is in the function 'module_exists()' which
uses a "greedy" replacement pattern when trying to split the path name
and the name of the module to look for.

The following patch fixes the problem but I guess it requires
substantial testing because the resulting initrd files are much smaller
and this may uncover other bugs. It works fine for me, though.

--- mkinitrd.orig       2006-01-12 10:44:15.961446096 +0100
+++ mkinitrd    2005-12-08 13:56:13.000000000 +0100
@@ -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
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages initrd-tools depends on:
ii  coreutils [fileutils]      5.2.1-2       The GNU core utilities
ii  cpio                       2.5-1.3       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  util-linux                 2.12p-4sarge1 Miscellaneous system utilities

-- no debconf information


--- 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: