summaryrefslogtreecommitdiffstats
path: root/installclass.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 /installclass.py
parentb359ed47aa6ee7562ccd77ca7f4aef492ec4859b (diff)
downloadanaconda-e0e0f42e7a82ace44730ba8b69739be305d3c987.tar.gz
anaconda-e0e0f42e7a82ace44730ba8b69739be305d3c987.tar.xz
anaconda-e0e0f42e7a82ace44730ba8b69739be305d3c987.zip
add clearpart --initlabel support (43085)
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/installclass.py b/installclass.py
index 3d6d26403..235b4808b 100644
--- a/installclass.py
+++ b/installclass.py
@@ -51,9 +51,11 @@ class BaseInstallClass:
id.bootloader.useGrubVal = 0
id.bootloader.setForceLBA(forceLBA)
- def setClearParts(self, id, clear, drives = None, warningText = None):
+ def setClearParts(self, id, clear, drives = None, warningText = None,
+ initAll = 0):
id.partitions.autoClearPartType = clear
id.partitions.autoClearPartDrives = drives
+ id.partitions.reinitializeDisks = initAll
# XXX hack for install help text in GUI mode
if clear == CLEARPART_TYPE_LINUX:
self.clearType = "wkst"