]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Really fix --drivers
authorWarren Togami <wtogami@redhat.com>
Tue, 30 Jun 2009 19:35:18 +0000 (15:35 -0400)
committerWarren Togami <wtogami@redhat.com>
Tue, 30 Jun 2009 19:35:18 +0000 (15:35 -0400)
modules.d/90kernel-modules/install

index d257ae146b75b1a04c2e5b15aa3ab7b2d6889568..6e6c61eae707cb65fc05b19a69be2ef705c72d4a 100755 (executable)
@@ -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')