summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-17 18:49:21 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-17 18:49:21 +0000
commite0e0f42e7a82ace44730ba8b69739be305d3c987 (patch)
treec341bbf2cdeb2cb6809761cfe55812c25d686cd8 /kickstart.py
parentb359ed47aa6ee7562ccd77ca7f4aef492ec4859b (diff)
downloadanaconda-e0e0f42e7a82ace44730ba8b69739be305d3c987.tar.gz
anaconda-e0e0f42e7a82ace44730ba8b69739be305d3c987.tar.xz
anaconda-e0e0f42e7a82ace44730ba8b69739be305d3c987.zip
add clearpart --initlabel support (43085)
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/kickstart.py b/kickstart.py
index b41f2494e..6b73f233d 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -609,8 +609,10 @@ class KickstartBase(BaseInstallClass):
def doClearPart(self, id, args):
type = CLEARPART_TYPE_NONE
drives = None
+ initAll = 0
- (args, extra) = isys.getopt(args, '', [ 'linux', 'all', 'drives=' ])
+ (args, extra) = isys.getopt(args, '', [ 'linux', 'all', 'drives=',
+ 'initlabel'])
for n in args:
(str, arg) = n
@@ -620,8 +622,10 @@ class KickstartBase(BaseInstallClass):
type = CLEARPART_TYPE_ALL
elif str == '--drive':
drives = arg
-
- self.setClearParts(id, type, None)
+ elif str == '--initlabel':
+ initAll = 1
+
+ self.setClearParts(id, type, drives, initAll = initAll)
def defineRaid(self, id, args):
(args, extra) = isys.getopt(args, '', [ 'level=', 'device=',
@@ -815,7 +819,6 @@ class KickstartBase(BaseInstallClass):
BaseInstallClass.setInstallData(self, id)
self.setEarlySwapOn(1)
- self.partitions = []
self.postScripts = []
self.preScripts = []