|
|
|
@ -57,6 +57,9 @@ CMD_OPTIONS = [{'shortOption':"d",
|
|
|
|
|
'choices':['flash','hdd','usb-hdd'],
|
|
|
|
|
'help':_("device type for installed system")
|
|
|
|
|
},
|
|
|
|
|
{'longOption':'iso',
|
|
|
|
|
'optVal':"ISO",
|
|
|
|
|
'help':_("ISO image for installation")},
|
|
|
|
|
{'shortOption':"s",
|
|
|
|
|
'longOption':"os",
|
|
|
|
|
'optVal':"SYSTEM",
|
|
|
|
@ -372,6 +375,10 @@ class install_cmd(share_cmd):
|
|
|
|
|
self.logicObj.clVars.Set('os_install_root_type',
|
|
|
|
|
self.optobj.values.type, True)
|
|
|
|
|
|
|
|
|
|
if self.optobj.values.iso:
|
|
|
|
|
if not self.logicObj.setIso(self.optobj.values.iso):
|
|
|
|
|
return False
|
|
|
|
|
|
|
|
|
|
listDiskOptions = []
|
|
|
|
|
listBindOptions = []
|
|
|
|
|
listSwapOptions = []
|
|
|
|
@ -469,8 +476,10 @@ class install_cmd(share_cmd):
|
|
|
|
|
if self.logicObj.installSystem(force=force, bootDisk=bootDisk,
|
|
|
|
|
stdinReadPwd=stdinReadPwd, builder=builder,
|
|
|
|
|
flagSpinner=flagSpinner,update=update):
|
|
|
|
|
self.defaultPrint("\n")
|
|
|
|
|
self.defaultPrint(_("To apply changes you have to reboot")+".\n")
|
|
|
|
|
if self.logicObj.clVars.Get('os_install_root_type') != "flash":
|
|
|
|
|
self.defaultPrint("\n")
|
|
|
|
|
self.defaultPrint(_("To apply changes you have to reboot")+
|
|
|
|
|
".\n")
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
|
return False
|
|
|
|
|