diff --git a/i18n/cl_install_ru.mo b/i18n/cl_install_ru.mo index f9f1c05..b32b233 100644 Binary files a/i18n/cl_install_ru.mo and b/i18n/cl_install_ru.mo differ diff --git a/pym/cl_install_cmd.py b/pym/cl_install_cmd.py index 74ef570..e65d93f 100644 --- a/pym/cl_install_cmd.py +++ b/pym/cl_install_cmd.py @@ -86,6 +86,10 @@ CMD_OPTIONS = [{'shortOption':"d", 'action':'append', 'help':_("add user to installed system") }, + {'longOption':"hostname", + 'optVal':"HOSTNAME", + 'help':_("set short hostname of full hostname") + }, {'longOption':"proxy", 'optVal':"PROXY", 'help':_("set proxy server for system") @@ -277,6 +281,17 @@ class install_cmd(share_cmd): self.optobj.values.march,True) if self.optobj.values.nouuid: self.logicObj.clVars.Set('cl_uuid_set','off',True) + if self.optobj.values.hostname: + hostname = self.optobj.values.hostname + if "." in hostname: + hostname, op, domain = hostname.partition('.') + self.logicObj.clVars.Set('os_install_net_hostname', + hostname,True) + self.logicObj.clVars.Set('os_install_net_domain', + domain,True) + else: + self.logicObj.clVars.Set('os_install_net_hostname', + hostname,True) if self.optobj.values.build: self.logicObj.clVars.Set('os_install_scratch',"on",True) else: