|
|
|
@ -29,7 +29,7 @@ from .action import Actions
|
|
|
|
|
import linux as vars_linux
|
|
|
|
|
import datetime
|
|
|
|
|
from calculate.install import distr
|
|
|
|
|
from calculate.lib.utils.device import getUdevDeviceInfo, humanreadableSize
|
|
|
|
|
from calculate.lib.utils.device import udev, humanreadableSize
|
|
|
|
|
from calculate.lib.utils.files import (isMount, process, typeFile,
|
|
|
|
|
listDirectory,
|
|
|
|
|
pathJoin, readFile, check_rw)
|
|
|
|
@ -331,7 +331,7 @@ class VariableClBuilderDiskDev(Variable):
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("You need to select a destination for build"))
|
|
|
|
|
if value.startswith("/dev"):
|
|
|
|
|
cnDisk = getUdevDeviceInfo(name=value).get('DEVNAME', value)
|
|
|
|
|
cnDisk = udev.get_device_info(name=value).get('DEVNAME', value)
|
|
|
|
|
if cnDisk not in self.Get('install.os_disk_dev'):
|
|
|
|
|
raise VariableError(_("Wrong device '%s'") % value)
|
|
|
|
|
if not value.startswith('/'):
|
|
|
|
|