From ec23de65fcf0bab1f8c3c5ef79182731417ad5b1 Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Fri, 10 Mar 2006 06:25:14 +0000 Subject: [PATCH] Added optional filename argument to write_modprobe_config() function for testing purposes. --- source/steps/InstallWriteConfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/steps/InstallWriteConfig.py b/source/steps/InstallWriteConfig.py index f7e164f..ca6e0ba 100644 --- a/source/steps/InstallWriteConfig.py +++ b/source/steps/InstallWriteConfig.py @@ -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: -- 2.43.0