From: Andrey Borzenkov Date: Thu, 5 Aug 2010 16:06:57 +0000 (+0400) Subject: Fix ahci detection in kernel 2.6.35 X-Git-Tag: 007~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0493f9c8491fc31e7b08b55183b2f6decdc98f97;p=thirdparty%2Fdracut.git Fix ahci detection in kernel 2.6.35 Kernel 2.6.35 (may be, earlier) split ahci into libahci.ko and ahci.ko and added ahci_platform.ko. As a result, drivers ahci and ahci_platform do not contain any symbol that are checked for storage modules (it is libahci.ko that references ata_scsi_ioctl now). So add additional symbol ahci_init_controller; it seems this is expected to be called by every driver based on libahci.ko. Signed-off-by: Andrey Borzenkov --- diff --git a/modules.d/90kernel-modules/installkernel b/modules.d/90kernel-modules/installkernel index 2171e5a8a..e679b101b 100755 --- a/modules.d/90kernel-modules/installkernel +++ b/modules.d/90kernel-modules/installkernel @@ -1,7 +1,7 @@ #!/bin/bash if [[ -z $drivers ]]; then block_module_test() { - local blockfuncs='ata_scsi_ioctl|scsi_add_host|blk_init_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device' + local blockfuncs='ahci_init_controller|ata_scsi_ioctl|scsi_add_host|blk_init_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device' egrep -q "$blockfuncs" "$1" }