summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-08-25 21:27:36 +0000
committerMike Fulbright <msf@redhat.com>2003-08-25 21:27:36 +0000
commit4af8b5ec3a3b217b458e77a7ed60d63c0e53b0ec (patch)
tree3f67aa1bb6c40ae05ec661d3f34d69ced8933be3 /kickstart.py
parent80e8c1224bd65f5b132b9e4fe14506b2ffa09102 (diff)
downloadanaconda-4af8b5ec3a3b217b458e77a7ed60d63c0e53b0ec.tar.gz
anaconda-4af8b5ec3a3b217b458e77a7ed60d63c0e53b0ec.tar.xz
anaconda-4af8b5ec3a3b217b458e77a7ed60d63c0e53b0ec.zip
fix for bug #78627 - enhancements and fixes for ks network directive
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/kickstart.py b/kickstart.py
index e1d03def9..9563b5cc9 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -420,7 +420,7 @@ class KickstartBase(BaseInstallClass):
# nodns is only used by the loader
(args, extra) = isys.getopt(args, '',
[ 'bootproto=', 'ip=', 'netmask=', 'gateway=', 'nameserver=',
- 'nodns', 'device=', 'hostname=', 'ethtool='])
+ 'nodns', 'device=', 'hostname=', 'ethtool=', 'onboot='])
bootProto = "dhcp"
ip = None
netmask = ""
@@ -428,6 +428,7 @@ class KickstartBase(BaseInstallClass):
nameserver = ""
hostname = ""
ethtool = ""
+ onboot = 1
device = None
for n in args:
(str, arg) = n
@@ -447,8 +448,13 @@ class KickstartBase(BaseInstallClass):
hostname = arg
elif str== "--ethtool":
ethtool = arg
+ elif str== "--onboot":
+ if arg == 'no':
+ onboot = 0
+ else:
+ onboot = 1
- self.setNetwork(id, bootProto, ip, netmask, ethtool, device=device)
+ self.setNetwork(id, bootProto, ip, netmask, ethtool, device=device, onboot=onboot)
if hostname != "":
self.setHostname(id, hostname)
if nameserver != "":