diff --git a/pym/cl_fill_install.py b/pym/cl_fill_install.py index a1e45d2..9606ddc 100644 --- a/pym/cl_fill_install.py +++ b/pym/cl_fill_install.py @@ -29,7 +29,7 @@ from cl_utils import isMount,typeFile,getTupleVersion,pathJoin,isFstabMount,\ FStab, lspci, getInstalledVideo,getDeviceType, \ getPartitionType, getOsProberHash, getProgPath, \ getRaidPartitions, getLvmPartitions, getLvmGroups, \ - getPasswdUsers, readFile + getPasswdUsers, readFile, readLinesFile from cl_distr import DistributiveRepository,PartitionDistributive from cl_fill import clLocale from operator import itemgetter @@ -1481,3 +1481,13 @@ class fillVars(object, glob_attr): return nonRootUsers[0] else: return "" + + def get_os_install_kernel_cpufreq(self): + """Get cpufreq (and other from modules_3= param) from conf.d/modules""" + cpufreqmods = map(lambda x:x.partition('=')[2].strip("\n '\""), + filter(lambda x:x.startswith('modules_3'), + readLinesFile('/etc/conf.d/modules'))) + if cpufreqmods: + return cpufreqmods[0] + else: + return "" diff --git a/pym/cl_vars_install.py b/pym/cl_vars_install.py index 1ebc6f8..fd13dd5 100644 --- a/pym/cl_vars_install.py +++ b/pym/cl_vars_install.py @@ -164,6 +164,9 @@ class Data: # install kernel resume os_install_kernel_resume = {} + # install cpufreq modules + os_install_kernel_cpufreq = {} + # system image for installation cl_image = {}