Move refresh udev and lvm from cl_fill_install to cl_install.

master
Mike Hiretsky 13 years ago
parent 1ad5ae466e
commit 1076a5a6bd

@ -29,7 +29,7 @@ from cl_utils import isMount,typeFile,getTupleVersion,pathJoin,isFstabMount,\
FStab, lspci, getInstalledVideo,getDeviceType, \
getPartitionType, getOsProberHash, getProgPath, \
getRaidPartitions, getLvmPartitions, getLvmGroups, \
refreshLVM, refreshUdev, getPasswdUsers
getPasswdUsers
from cl_distr import DistributiveRepository,PartitionDistributive
from cl_fill import clLocale
from operator import itemgetter
@ -325,11 +325,6 @@ class fillVars(object, glob_attr):
else:
return devpath
# refresh information about LVM
refreshLVM()
# refresh information about device in udevadm info
refreshUdev()
devicesHash = self.Get('os_device_hash')
sysBlockPath = '/sys/block'
# get disks from sys block which not contains partitions

@ -28,7 +28,7 @@ from cl_utils import runOsCommand,appendProgramToEnvFile, \
detectDeviceForPartition,listDirectory, \
cmpVersion,STDOUT,getUdevDeviceInfo, \
getLvmPartitions,getInstalledVideo, \
getSupportArch
getSupportArch, refreshLVM, refreshUdev
from cl_vars_share import varsShare
from cl_kernel_utils import KernelConfig,InitRamFs
@ -801,6 +801,11 @@ class cl_install(color_print, SignalInterrupt):
Spinner().setWriteFunc(self.defaultPrint)
cl_overriding.exit = installExit
cl_overriding.printERROR = overprintERROR
# refresh information about LVM
refreshLVM()
# refresh information about device in udevadm info
refreshUdev()
def setNoColor(self):
self.color = False

Loading…
Cancel
Save