summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorlaroche <laroche>2000-02-28 11:54:15 +0000
committerlaroche <laroche>2000-02-28 11:54:15 +0000
commit2d8c86efebf91cf338b7e8c4237e9dfb21987d93 (patch)
treefabc12d220dcd44308f05f4738c2c991ebc57698 /kickstart.py
parentfd05a59bd52380feae73714aa5f9bbad9f5644a9 (diff)
downloadanaconda-2d8c86efebf91cf338b7e8c4237e9dfb21987d93.tar.gz
anaconda-2d8c86efebf91cf338b7e8c4237e9dfb21987d93.tar.xz
anaconda-2d8c86efebf91cf338b7e8c4237e9dfb21987d93.zip
add support for a hostname option within "network", patch from testers-list@
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py
index 5fbd760b7..43ad12b4c 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -155,12 +155,13 @@ class Kickstart(InstallClass):
# nodns is only used by the loader
(args, extra) = isys.getopt(args, '',
[ 'bootproto=', 'ip=', 'netmask=', 'gateway=', 'nameserver=',
- 'nodns'])
+ 'nodns', 'hostname='])
bootProto = "dhcp"
ip = None
netmask = ""
gateway = ""
nameserver = ""
+ hostname = ""
for n in args:
(str, arg) = n
if str == "--bootproto":
@@ -173,7 +174,11 @@ class Kickstart(InstallClass):
gateway = arg
elif str == "--nameserver":
nameserver = arg
+ elif str == "--hostname":
+ hostname = arg
self.setNetwork(bootProto, ip, netmask, gateway, nameserver)
+ if hostname != "":
+ self.setHostname(hostname)
def doLang(self, args):
self.setLanguage(args[0])