-
- for type in sysmods:
- if type == systeminfo.MODULE_CLASS_SCSI:
- for a_mod in sysmods[type]:
- if scsi_count == 0:
- modulesconf_file.write( "alias scsi_hostadapter %s\n" %
- a_mod )
- else:
- modulesconf_file.write( "alias scsi_hostadapter%d %s\n" %
- (scsi_count,a_mod) )
- scsi_count= scsi_count + 1
-
- elif type == systeminfo.MODULE_CLASS_NETWORK:
- for a_mod in sysmods[type]:
- modulesconf_file.write( "alias eth%d %s\n" %
- (eth_count,a_mod) )
- eth_count= eth_count + 1
+ modulesconf_file.write("options ata_generic all_generic_ide=1\n")
+
+ # MEF: I am not sure this is the proper thing to do if there are
+ # two completely different scsi_hostadapter. I think its ok, but
+ # it seems rather arbitrary.
+ count=0
+ for a_mod in sysmods[systeminfo.MODULE_CLASS_SCSI]:
+ line="alias scsi_hostadapter%d %s\n" % (count,a_mod)
+ modulesconf_file.write(line)
+ count=count+1
+
+ # This should involve looking at the NodeNetworks associated with
+ # this node and matching on their ethernet address. Barring that
+ # information order the remaining ethX numbering according to PCI
+ # enumeration order. This should be integrated with
+ # WriteNetworkConfig and integrate. For now lets just comment out
+ # the 'alias ethX a_mod' lines in modprobe.conf
+ count=0
+ for a_mod in sysmods[systeminfo.MODULE_CLASS_NETWORK]:
+ line="# Want to comment this out in the future.\n"
+ line+="alias eth%d %s\n" % (count,a_mod)
+ modulesconf_file.write(line)
+ count=count+1