1. modules.dep was not being read for the list of modules
2. the script merges pcitable (from hwdata) based on the list of modules
(which wasn't present)
3. this resulted in a few modules not being loaded by the boot cd when
appropriate, including the mptscsih driver for the scsi controllers
in dell 1850s
the cd worked fine otherwise because it successfully read modules.pcimap
which is generated based on the PCI_ENTRY fields in the drivers. For some
reason, the mptscsih driver DOESN'T have a PCI_ENTRY in its driver,
so it doesn't show up there. fedora's pcitable (from hwdata) has
it, which is why the two sources need to be merged.
# first step, create an associative array of all the built modules
-for line in modulesdep_file_name:
+for line in modulesdep_file:
parts= string.split(line,":")
if len(parts) < 2:
continue
module_name= parts[len(parts)-1]
module_name_len= len(module_name)
if module_name[module_name_len-3:] == ".ko":
- all_modules[module_name[:3]]= []
+ all_modules[module_name[:-3]]= []
# now, parse the pcimap and add devices