Really fix --drivers
parent
d8b3d672c3
commit
696e68c643
|
@ -1,14 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if [ -z "$drivers" ]; then
|
if [ -z "$drivers" ]; then
|
||||||
drivers="sd_mod =fs"
|
drivers="sd_mod =fs"
|
||||||
instmods $drivers
|
|
||||||
# Include block controller drivers
|
# Include block controller drivers
|
||||||
for modname in $(find "/lib/modules/$kernel/kernel/drivers" -name '*.ko'); do
|
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
|
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
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
instmods $drivers
|
||||||
[ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
|
[ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
|
||||||
dracut_install $(find /etc/modprobe.d/ -type f -name '*.conf')
|
dracut_install $(find /etc/modprobe.d/ -type f -name '*.conf')
|
||||||
|
|
Loading…
Reference in New Issue