Add variable os_install_kernel_cpufreq.

master
Mike Hiretsky 13 years ago
parent 2768ee725a
commit f350a4b5da

@ -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 ""

@ -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 = {}

Loading…
Cancel
Save