Add isohybryd action by default.

master
Mike Hiretsky 13 years ago
parent 2879a81115
commit eb9b2e1fe1

Binary file not shown.

@ -480,6 +480,10 @@ class cl_builder(color_print):
self.printMessageForTest(_("Creating squash image"))
self.targetDistr.installFrom(self.sourceDistr)
self.printByResult(True)
if self.clVars.Get('cl_builder_isohybrid_set') == 'on':
self.printMessageForTest(_("Performing isohybrid"))
processIsoHybrid = process("/usr/bin/isohybrid",isoFile)
self.printByResult(processIsoHybrid.success())
self.printMessageForTest(_("Creating installed package list"))
self.printByResult(self.createPackageList(sourceDirectory,
isoFile[:-4]+".list"))

@ -41,6 +41,9 @@ CMD_OPTIONS = [{'shortOption':"p",
{'longOption':'notree',
'help':_("exclude portage tree from image")
},
{'longOption':'noisohybrid',
'help':_("create iso image without isohybrid")
},
{'longOption':"set"},
{'shortOption':"f",
'longOption':"force",
@ -128,6 +131,9 @@ class image_cmd(share_cmd):
if values.notree:
self.logicObj.clVars.Set('cl_builder_tree','off',True)
if values.noisohybrid:
self.logicObj.clVars.Set('cl_builder_isohybrid_set','off',True)
if args and args[0] == "squash":
self.logicObj.clVars.Set('cl_builder_iso_path','/mnt/flash',True)
self.optobj.checkVarSyntax(values)

@ -100,6 +100,8 @@ class Data:
# include portage directory from image
cl_builder_tree = {'value':'on'}
cl_builder_isohybrid_set = {'value':'on'}
# build system name
os_builder_linux_name = {}

Loading…
Cancel
Save