Added optional filename argument to write_modprobe_config() function for
authorMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 10 Mar 2006 06:25:14 +0000 (06:25 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 10 Mar 2006 06:25:14 +0000 (06:25 +0000)
testing purposes.

source/steps/InstallWriteConfig.py

index f7e164f..ca6e0ba 100644 (file)
@@ -387,7 +387,7 @@ def write_network_configuration( vars, log ):
 
 
 
-def write_modprobeconf_file( vars, log ):
+def write_modprobeconf_file( vars, log, filename = "/etc/modprobe.conf"):
     """
     write out the system file /etc/modprobe.conf with the current
     set of modules.
@@ -422,7 +422,7 @@ def write_modprobeconf_file( vars, log ):
     eth_count= 0
     scsi_count= 0
 
-    modulesconf_file= file("%s/etc/modprobe.conf" % SYSIMG_PATH, "w" )
+    modulesconf_file= file("%s/%s" % (SYSIMG_PATH,filename), "w" )
 
     for type in sysmods:
         if type == sysinfo.MODULE_CLASS_SCSI: