|
|
|
@ -87,18 +87,6 @@ class DataVarsBuilderImage(LinuxDataVars):
|
|
|
|
|
self['cl_builder_path'] = self.systemRoot
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
class VariableClBuilderLiveBasePath(ReadonlyVariable):
|
|
|
|
|
"""
|
|
|
|
|
Путь, куда подключена flash
|
|
|
|
|
"""
|
|
|
|
|
value = "/run/initramfs/live"
|
|
|
|
|
|
|
|
|
|
class VariableClBuilderImagePath(ReadonlyVariable):
|
|
|
|
|
"""
|
|
|
|
|
Путь до iso образов
|
|
|
|
|
"""
|
|
|
|
|
def get(self):
|
|
|
|
|
return path.join(self.Get('cl_builder_live_base_path'), "iso")
|
|
|
|
|
|
|
|
|
|
class VariableClBuilderImageBootparam(Variable):
|
|
|
|
|
"""
|
|
|
|
@ -143,7 +131,7 @@ class VariableClBuilderImageData(ReadonlyTableVariable):
|
|
|
|
|
|
|
|
|
|
def generator(self, isopath):
|
|
|
|
|
n = 1
|
|
|
|
|
numbered = re.compile(r"^.*-(\d+)-(?:x86_64|i686)\.iso$")
|
|
|
|
|
numbered = re.compile(r"^.*-(\d{1,3})-(?:x86_64|i686)\.iso$")
|
|
|
|
|
for iso_image in sorted(
|
|
|
|
|
[x for x in listDirectory(isopath, fullPath=True)
|
|
|
|
|
if x.endswith('.iso')],
|
|
|
|
|