Добавлен параметр загрузки образа в память

parent d94a68302e
commit 73877a6f26

@ -1230,7 +1230,11 @@ class Builder(Update):
if current_video == video and video != "default":
composite = self.clVars.Get('cl_builder_x11_composite')
params.append("%s:%s" % (CmdlineParams.Composite, composite))
return ",".join(params)
calculate_param = ",".join(params)
if self.clVars.GetBool('cl_builder_docache_set'):
return "%s docache" % calculate_param
else:
return calculate_param
def create_iso_grub_cfg(self, dn):
gc = GrubCommand()

@ -106,7 +106,7 @@ class ClBuilderImageAction(Action):
},
{'name': 'trim_reps',
'foreach': 'cl_builder_sync_rep',
'message': __("Cleaning the {eachvar:capitalize} "
'message': __("Cleaning the history of the {eachvar:capitalize} "
"repository"),
'method': 'Builder.trimRepositories(eachvar)',
'condition': lambda Get: (

@ -143,8 +143,8 @@ class ClBuilderUpdateAction(Action):
},
{'name': 'trim_reps',
'foreach': 'cl_builder_sync_rep',
'message': __("Cleaning the {eachvar:capitalize} "
"repository"),
'message': __("Cleaning the history of the "
"{eachvar:capitalize} repository"),
'method': 'Builder.trimRepositories(eachvar)',
'condition': lambda Get: (
Get('cl_builder_sync_rep') and

@ -338,3 +338,16 @@ class VariableClBuilderX11Composite(GrubOptionVariable,
X11.VariableOsInstallX11Composite):
def get(self):
return self.Get('os_x11_composite')
class VariableClBuilderDocacheSet(GrubOptionVariable, Variable):
"""
Добавлить параметр docache в загрузку образа
"""
type = "bool"
opt = ["--docache"]
value = "off"
def init(self):
self.label = _("Boot an image to RAM")
self.help = _("boot an image to RAM")

@ -242,6 +242,7 @@ class Wsdl(WsdlBase):
'cl_builder_x11_video_drv',
'cl_builder_x11_resolution',
'cl_builder_x11_composite',
'cl_builder_docache_set'
),
next_label=_("Perform"))],
'brief': {'next': __("Perform"),

Loading…
Cancel
Save