|
|
|
@ -31,7 +31,7 @@ from calculate.lib.utils.device import (getUdevDeviceInfo,getDeviceType,
|
|
|
|
|
getUUIDDict,getCommonDeviceName)
|
|
|
|
|
from calculate.install.variables.autopartition import Sizes
|
|
|
|
|
from calculate.lib.utils.files import (listDirectory,pathJoin,readFile,FStab,
|
|
|
|
|
isMount)
|
|
|
|
|
isMount,getProgPath)
|
|
|
|
|
from calculate.install.distr import PartitionDistributive
|
|
|
|
|
from calculate.install.fs_manager import FileSystemManager
|
|
|
|
|
|
|
|
|
@ -110,7 +110,8 @@ class VariableOsDeviceDev(ReadonlyVariable,DeviceHelper):
|
|
|
|
|
"""Get device /dev name"""
|
|
|
|
|
if self.master is None:
|
|
|
|
|
self.master,slave = pty.openpty()
|
|
|
|
|
self.monitor = Popen(["/sbin/udevadm","monitor","--kernel",
|
|
|
|
|
udevAdm = getProgPath('/sbin/udevadm')
|
|
|
|
|
self.monitor = Popen([udevAdm,"monitor","--kernel",
|
|
|
|
|
"--subsystem-match=block"],stdout=slave,
|
|
|
|
|
close_fds=True)
|
|
|
|
|
os.close(slave)
|
|
|
|
|