diff options
author | Erik Troan <ewt@redhat.com> | 1999-09-08 01:21:57 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-09-08 01:21:57 +0000 |
commit | 439ca96218257524676f84b22fcfa4b65f95b6d4 (patch) | |
tree | 4f5abdbb9f885d76189966bf97d9c1686750964a /kickstart.py | |
parent | 9932bdbafde50da2e9a21e3ff7c6a95c5356abbf (diff) | |
download | anaconda-439ca96218257524676f84b22fcfa4b65f95b6d4.tar.gz anaconda-439ca96218257524676f84b22fcfa4b65f95b6d4.tar.xz anaconda-439ca96218257524676f84b22fcfa4b65f95b6d4.zip |
use argument parsing code from popt
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kickstart.py b/kickstart.py index f33a2f873..9cf50ffe9 100644 --- a/kickstart.py +++ b/kickstart.py @@ -2,13 +2,12 @@ import isys from installclass import InstallClass from installclass import FSEDIT_CLEAR_LINUX from installclass import FSEDIT_CLEAR_ALL -import getopt import sys class Kickstart(InstallClass): def doRootPw(self, args): - (args, extra) = getopt.getopt(args, '', [ 'iscrypted=' ]) + (args, extra) = isys.getopt(args, '', [ 'iscrypted=' ]) isCrypted = 0 for n in args: @@ -20,7 +19,7 @@ class Kickstart(InstallClass): self.addToSkipList("accounts") def doAuthconfig(self, args): - (args, extra) = getopt.getopt(args, '', + (args, extra) = isys.getopt(args, '', [ 'enablenis', 'nisdomain=', 'nisserver=', 'useshadow', 'enablemd5' ]) @@ -51,7 +50,7 @@ class Kickstart(InstallClass): self.addToSkipList("authentication") def doLilo (self, args): - (args, extra) = getopt.getopt(args, '', + (args, extra) = isys.getopt(args, '', [ 'append=', 'location=', 'linear' ]) appendLine = None @@ -77,7 +76,7 @@ class Kickstart(InstallClass): self.addToSkipList("lilo") def doTimezone(self, args): - (args, extra) = getopt.getopt(args, '', + (args, extra) = isys.getopt(args, '', [ 'utc' ]) isUtc = 0 @@ -98,7 +97,7 @@ class Kickstart(InstallClass): self.installType = "upgrade" def doNetwork(self, args): - (args, extra) = getopt.getopt(args, '', + (args, extra) = isys.getopt(args, '', [ 'bootproto', 'ip', 'netmask', 'gateway', 'nameserver' ]) bootProto = "dhcp" ip = None @@ -167,7 +166,7 @@ class Kickstart(InstallClass): grow = 0 maxSize = 0 - (args, extra) = getopt.getopt(args, '', [ 'size=', 'maxsize=', + (args, extra) = isys.getopt(args, '', [ 'size=', 'maxsize=', 'grow' ]) for n in args: @@ -182,6 +181,7 @@ class Kickstart(InstallClass): self.partitions.append((extra[0], size, maxSize, grow)) self.addToSkipList("partition") + self.addToSkipList("format") def __init__(self, file): InstallClass.__init__(self) |