Bug#284141: initrd-tools: no SCSI should not be a fatal error
On Fri, Dec 03, 2004 at 11:10:35PM +0000, Michael Shields wrote:
> Package: initrd-tools
> Version: 0.1.74
> Severity: normal
>
> mkinitrd contains the lines:
>
> 8 | 11)
> if [ ! -d /proc/scsi ]; then
> echo "$PROG: Cannot determine SCSI module" >&2
> exit 1
> fi
>
> This makes it impossible to upgrade from a custom kernel with no SCSI
> support to a standard Debian kernel. It would be better if mkinitrd
> instead left out all SCSI modules when /proc/scsi was missing.
Actually no. /proc/scsi is
(a) not present on all 2.6 kernels (only if "legacy /proc/scsi/ support"
is enabled)
(b) even if it is enabled on mainline kernels only drivers who actually
have a ->proc_info method show up there. Debian kernels have a
totally broken patch that Herbert added to make mkinitrd still work.
So mkinitrd simply must not rely on /proc/scsi at all when running on
2.6 kernels.
Reply to: