Bug#329880: initrd-tools: unnecessarily loads ide-scsi module
Package: initrd-tools
Version: 0.1.82
Severity: normal
Tags: patch
*** Please type your report below this line ***
The ide-scsi module isn't used to access SCSI drives, but mkinitrd
generates initrd images that load it at boot time if the host system
has a newer kernel and an SCSI (or SATA) root partition.
The module is specifically removed from the list of SCSI modules on
older kernels, but this was apparently overlooked when the new kernel
support was added. If a system has been configured to use the ide-cd
interface to an IDE CD drive, this makes attempts to access the CD
drive mysteriously fail (which is how I discovered the bug in the first
place).
The below patch adds the filtering of the ide-scsi module and the other
specifically excluded modules from the older kernel detection code.
--- mkinitrd.orig 2005-09-22 23:35:37.000000000 -0400
+++ mkinitrd 2005-09-22 22:21:05.000000000 -0400
@@ -657,7 +657,11 @@
echo $i
fi
fi
- done | tac
+ done | sed '
+ /^ide-scsi$/d
+ /^usb-storage-/d
+ /^sbp2_/d
+ ' | tac
echo sd_mod
;;
7[2-9])
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (650, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-amd64-k8
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.1 The GNU core utilities
ii cpio 2.6-5 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-4 Miscellaneous system utilities
initrd-tools recommends no packages.
-- no debconf information
Reply to: