Bug#278887: initrd-tools: Caused by megaraid2 module using /proc/scsi/megaraid

2004-12-13 Thread Christoph Hellwig
On Mon, Dec 13, 2004 at 06:38:57AM +0100, Harald Dunkel wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Philipp Niemann wrote:
 |
 | In the script /usr/sbin/mkinitrd, Line 497, is a find which seems to
 | search /proc/scsi for modules needed to mount the root device. If one
 | has the megaraid2 module loaded, there will be a directory called
 | megaraid in /proc/scsi.
 |
 
 Do you get the same misnamed module directory in /proc/scsi for
 kernel 2.6.x?

There's no megaraid2 driver in 2.6.  Megaraid 2.0.x is megaraid.ko, the
newer 2.2.x driver is split into two modules, megaraid_mbox.ko and
megaraid_mm.ko.  In any case mkinitrd shouldn't rely on /proc/scsi at
all.





Bug#278887: initrd-tools: Caused by megaraid2 module using /proc/scsi/megaraid

2004-12-12 Thread Philipp Niemann
Package: initrd-tools
Version: 0.1.74
Followup-For: Bug #278887

In the script /usr/sbin/mkinitrd, Line 497, is a find which seems to
search /proc/scsi for modules needed to mount the root device. If one
has the megaraid2 module loaded, there will be a directory called
megaraid in /proc/scsi.

This seems to have the effect of making /usr/sbin/mkinitrd add
megaraid instead of megaraid2 to initrd/loadmodules, which in turn
renders the system unbootable on DELL PowerEdge * Servers equipped with
the DELL PERC 4e/Si and others (PowerEdge 1850 for my part).

Workaround is to add megaraid2 on a line by its own to
/etc/mkinitrd/modules and run dpkg-reconfigure kernel-image-version
e.g. dpkg-reconfigure kernel-image-2.4.27-1-686-smp

Regards,
Philipp

(Beware, system information below is from a different host, but that
should have almost the same versions installed. At least initrd-tools is
the same)

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages initrd-tools depends on:
ii  coreutils [fileutils] 5.2.1-2The GNU core utilities
ii  cpio  2.5-1.1GNU cpio -- a program to manage ar
ii  cramfsprogs   1.1-6  Tools for CramFs (Compressed ROM F
ii  dash  0.5.1-3The Debian Almquist Shell
ii  fileutils 5.2.1-2The GNU file management utilities 
ii  util-linux2.12-10Miscellaneous system utilities

-- no debconf information




Bug#278887: initrd-tools: Caused by megaraid2 module using /proc/scsi/megaraid

2004-12-12 Thread Harald Dunkel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Philipp Niemann wrote:
|
| In the script /usr/sbin/mkinitrd, Line 497, is a find which seems to
| search /proc/scsi for modules needed to mount the root device. If one
| has the megaraid2 module loaded, there will be a directory called
| megaraid in /proc/scsi.
|
Do you get the same misnamed module directory in /proc/scsi for
kernel 2.6.x?
Regards
Harri
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBvSrxUTlbRTxpHjcRAgwxAJ9uZKXOYJECK23lf/H31pYq0xEqmQCcCS0u
1WhmBf3MlZ+VBzLOa+4Oxqc=
=aS45
-END PGP SIGNATURE-