Really fix --drivers

master
Warren Togami 2009-06-30 15:35:18 -04:00
parent d8b3d672c3
commit 696e68c643
1 changed files with 2 additions and 3 deletions

View File

@ -1,14 +1,13 @@
#!/bin/bash
if [ -z "$drivers" ]; then
drivers="sd_mod =fs"
instmods $drivers
# Include block controller drivers
for modname in $(find "/lib/modules/$kernel/kernel/drivers" -name '*.ko'); do
if nm -uPA $modname | egrep -q 'ata_scsi_ioctl|scsi_add_host|blk_init_queue|register_mtd_blktrans|scsi_esp_register'; then
instmods $modname
drivers="${drivers} $modname"
fi
done
fi

instmods $drivers
[ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
dracut_install $(find /etc/modprobe.d/ -type f -name '*.conf')