|
|
@ -21,6 +21,7 @@ from calculate.lib.utils.files import FilesError
|
|
|
|
from ..datavars import BuilderError
|
|
|
|
from ..datavars import BuilderError
|
|
|
|
from calculate.lib.utils.portage import GitError
|
|
|
|
from calculate.lib.utils.portage import GitError
|
|
|
|
from calculate.install.distr import DistributiveError, IsoDistributive
|
|
|
|
from calculate.install.distr import DistributiveError, IsoDistributive
|
|
|
|
|
|
|
|
from calculate.builder.variables.action import Actions
|
|
|
|
|
|
|
|
|
|
|
|
setLocalTranslate('cl_builder3', sys.modules[__name__])
|
|
|
|
setLocalTranslate('cl_builder3', sys.modules[__name__])
|
|
|
|
__ = getLazyLocalTranslate(_)
|
|
|
|
__ = getLazyLocalTranslate(_)
|
|
|
@ -81,6 +82,10 @@ class ClBuilderImageAction(Action):
|
|
|
|
'method': 'Builder.remove_video_drivers(cl_builder_path)',
|
|
|
|
'method': 'Builder.remove_video_drivers(cl_builder_path)',
|
|
|
|
'condition': lambda Get: Get('cl_builder_videodrv_set') == 'off'
|
|
|
|
'condition': lambda Get: Get('cl_builder_videodrv_set') == 'off'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{'name': 'remount_flash',
|
|
|
|
|
|
|
|
'method': 'Builder.remount_rw(cl_builder_flash_path)',
|
|
|
|
|
|
|
|
'condition': lambda Get: Get('cl_builder_rescratch_set') == 'on'
|
|
|
|
|
|
|
|
},
|
|
|
|
{'name': 'creating_live_image',
|
|
|
|
{'name': 'creating_live_image',
|
|
|
|
'group': __("Creating live image"),
|
|
|
|
'group': __("Creating live image"),
|
|
|
|
'tasks': [
|
|
|
|
'tasks': [
|
|
|
@ -99,7 +104,7 @@ class ClBuilderImageAction(Action):
|
|
|
|
IsoDistributive)
|
|
|
|
IsoDistributive)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{'name': 'squash_action',
|
|
|
|
{'name': 'squash_action',
|
|
|
|
'method': 'Builder.set_builder_action("squash")',
|
|
|
|
'method': 'Builder.set_builder_action("%s")'%Actions.ImageSquash,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{'name': 'count_files',
|
|
|
|
{'name': 'count_files',
|
|
|
|
'method': 'Builder.recount_files(cl_builder_path,'
|
|
|
|
'method': 'Builder.recount_files(cl_builder_path,'
|
|
|
@ -110,12 +115,14 @@ class ClBuilderImageAction(Action):
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{'name': 'apply_template',
|
|
|
|
{'name': 'apply_template',
|
|
|
|
'message': __("Configuring squash filesystem image"),
|
|
|
|
'message': __("Configuring squash filesystem image"),
|
|
|
|
# наложить шаблоны в развернутый дистрибутив
|
|
|
|
|
|
|
|
'method': 'Builder.applyTemplates(cl_builder_target,'
|
|
|
|
'method': 'Builder.applyTemplates(cl_builder_target,'
|
|
|
|
'False,False,None)',
|
|
|
|
'False,False,None)',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{'name': 'squash_action',
|
|
|
|
{'name': 'squash_action',
|
|
|
|
'method': 'Builder.set_builder_action("iso")',
|
|
|
|
'method': 'Builder.set_builder_action("%s")'%Actions.ImageIso,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{'name': 'protect_off',
|
|
|
|
|
|
|
|
'method': 'Builder.setVariable("cl_protect_use_set","off",True)'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
# сборка iso
|
|
|
|
# сборка iso
|
|
|
|
{'name':'remove_list_digest',
|
|
|
|
{'name':'remove_list_digest',
|
|
|
@ -145,10 +152,14 @@ class ClBuilderImageAction(Action):
|
|
|
|
'method': 'Builder.mount_target(cl_builder_target)',
|
|
|
|
'method': 'Builder.mount_target(cl_builder_target)',
|
|
|
|
'condition': lambda Get: Get('cl_builder_build')
|
|
|
|
'condition': lambda Get: Get('cl_builder_build')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{'name': 'update_menu',
|
|
|
|
{'name': 'image_menu',
|
|
|
|
'message': "Rescratch",
|
|
|
|
'method': 'Builder.set_builder_action("%s")' % Actions.ImageMenu,
|
|
|
|
'condition': lambda Get: Get('cl_builder_rescratch_set') == 'on'
|
|
|
|
'condition': lambda Get: Get('cl_builder_rescratch_set') == 'on'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{'name': 'image_menu:update_menu',
|
|
|
|
|
|
|
|
'message': "Templates",
|
|
|
|
|
|
|
|
'method': 'Builder.update_menu(cl_builder_flash_path)',
|
|
|
|
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{'name': 'failed',
|
|
|
|
{'name': 'failed',
|
|
|
|