|
|
|
@ -23,7 +23,8 @@ from cl_datavars import glob_attr
|
|
|
|
|
from os import path
|
|
|
|
|
from os import readlink,access,R_OK
|
|
|
|
|
from cl_utils import isMount,typeFile,getTupleVersion,pathJoin,isFstabMount,\
|
|
|
|
|
listDirectory, getAvailableX11Drivers, getUUIDDict,process
|
|
|
|
|
listDirectory, getAvailableX11Drivers, getUUIDDict, \
|
|
|
|
|
isPkgInstalled, process
|
|
|
|
|
from cl_distr import DistributiveRepository,PartitionDistributive
|
|
|
|
|
from cl_fill import clLocale
|
|
|
|
|
from operator import itemgetter
|
|
|
|
@ -855,7 +856,9 @@ class fillVars(object, glob_attr):
|
|
|
|
|
available_drivers = getAvailableX11Drivers()
|
|
|
|
|
videoVal = self.getValueFromCmdLine("calculate","video")
|
|
|
|
|
videoVal = {'i915':'intel'}.get(videoVal,videoVal)
|
|
|
|
|
if videoVal in available_drivers:
|
|
|
|
|
if not isPkgInstalled('xorg-server',
|
|
|
|
|
prefix=self.Get('cl_chroot_path') or \
|
|
|
|
|
videoVal in available_drivers:
|
|
|
|
|
return videoVal
|
|
|
|
|
return self.getVideoByDefault(available_drivers)
|
|
|
|
|
else:
|
|
|
|
|