Re: Problem and solution about SCSI configs

From: James Bottomley
Date: Mon Apr 29 2024 - 08:34:10 EST


On Mon, 2024-04-29 at 17:29 +0800, Tiezhu Yang wrote:
[...]
> Could you please let me know are you OK with the following change?
>
> -- >8 --
> diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
> index 634f2f501c6c..3e59e3e59e79 100644
> --- a/drivers/scsi/Kconfig
> +++ b/drivers/scsi/Kconfig
> @@ -25,6 +25,7 @@ config SCSI
>          select SG_POOL
>          select SCSI_COMMON
>          select BLK_DEV_BSG_COMMON if BLK_DEV_BSG
> +       select BLK_DEV_SD if SCSI=y
>          help
>            If you want to use a SCSI hard disk, SCSI tape drive, SCSI
> CD-ROM or
>            any other SCSI device under Linux, say Y and make sure
> that
> you know
>
> If yes, I will post a formal patch later.

No: this is a distro config problem not a kernel one. If the distro
doesn't boot with an initrd then every module used by the boot
(including all the SCSI drivers) must be built in and the distro kernel
builder must ensure that.

James