|
|
|
@ -480,13 +480,31 @@ class Install(MethodsInterface):
|
|
|
|
|
|
|
|
|
|
return not failed
|
|
|
|
|
|
|
|
|
|
def autopartition(self, scheme_builder, devices):
|
|
|
|
|
def wait_devices(self, disks):
|
|
|
|
|
"""
|
|
|
|
|
Ожидание одного из указанных устройств
|
|
|
|
|
"""
|
|
|
|
|
for waittime in (0.1, 0.2, 0.5, 1, 2, 4):
|
|
|
|
|
disks = [x for x in disks if x and not path.exists(x)]
|
|
|
|
|
if not disks:
|
|
|
|
|
break
|
|
|
|
|
else:
|
|
|
|
|
sleep(waittime)
|
|
|
|
|
|
|
|
|
|
if disks:
|
|
|
|
|
raise InstallError(
|
|
|
|
|
_("Failed to found partition %s after creating "
|
|
|
|
|
"the partition table")
|
|
|
|
|
% ",".join(disks))
|
|
|
|
|
|
|
|
|
|
def autopartition(self, scheme_builder, devices, disks):
|
|
|
|
|
"""
|
|
|
|
|
Авторазметка диска входящая переменная - SchemeBuilder
|
|
|
|
|
"""
|
|
|
|
|
self.clearLvm(devices)
|
|
|
|
|
self.clearRaid(devices)
|
|
|
|
|
scheme_builder.process(DiskFactory())
|
|
|
|
|
self.wait_devices(disks)
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
def format(self, target):
|
|
|
|
|