Add --hostname for set hostname or/and domain.

netsetup
Mike Hiretsky 14 years ago
parent 3bd8e2838c
commit ad55ca9ac0

Binary file not shown.

@ -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:

Loading…
Cancel
Save