summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-02 23:45:34 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-02 23:45:34 +0000
commita7f8be1fc0784b77213a3701f9b3af0be5d523a3 (patch)
tree7217c2890c8b26459a2ad7a2f424447896bf337d /kickstart.py
parent8fb4e211397792719097ae24348b32c85c993efe (diff)
downloadanaconda-a7f8be1fc0784b77213a3701f9b3af0be5d523a3.tar.gz
anaconda-a7f8be1fc0784b77213a3701f9b3af0be5d523a3.tar.xz
anaconda-a7f8be1fc0784b77213a3701f9b3af0be5d523a3.zip
clearpart --drives=hda
closes #14932
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/kickstart.py b/kickstart.py
index 084fa130b..224afb9a0 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -567,15 +567,20 @@ class KickstartBase(BaseInstallClass):
self.postScripts.append(s)
def doClearPart(self, id, args):
- if args[0] == '--linux':
- type = CLEARPART_TYPE_LINUX
- elif args[0] == '--all':
- type = CLEARPART_TYPE_ALL
- else:
- # XXX invalid clearpart arguments
- return
+ type = CLEARPART_TYPE_NONE
+ drives = None
+
+ (args, extra) = isys.getopt(args, '', [ 'linux', 'all', 'drives=' ])
+
+ for n in args:
+ (str, arg) = n
+ if str == '--linux':
+ type = CLEARPART_TYPE_LINUX
+ elif str == '--all':
+ type = CLEARPART_TYPE_ALL
+ elif str == '--drive':
+ drives = arg
- # XXX want to have --drive hda,hdb
self.setClearParts(id, type, None)
def defineRaid(self, args):