summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-01 17:50:13 +0000
committerMatt Wilson <msw@redhat.com>1999-09-01 17:50:13 +0000
commitd51302135cb4649b084dcf85f8d6984f76d51ae8 (patch)
tree0a8a70fd346f361e709a866d0798957ddb5475a4 /installclass.py
parent79e681f0f100f23c368a922184a86918f246ad8c (diff)
downloadanaconda-d51302135cb4649b084dcf85f8d6984f76d51ae8.tar.gz
anaconda-d51302135cb4649b084dcf85f8d6984f76d51ae8.tar.xz
anaconda-d51302135cb4649b084dcf85f8d6984f76d51ae8.zip
initial attempt at implementing clearpart
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/installclass.py b/installclass.py
index 089066ed1..8d01b99a1 100644
--- a/installclass.py
+++ b/installclass.py
@@ -4,6 +4,10 @@
# The interface to InstallClass is *public* -- ISVs/OEMs can customize the
# install by creating a new derived type of this class.
+FSEDIT_CLEAR_LINUX = (1 << 0)
+FSEDIT_CLEAR_ALL = (1 << 2)
+FSEDIT_USE_EXISTING = (1 << 3)
+
class InstallClass:
# ummm, HACK
@@ -23,7 +27,7 @@ class InstallClass:
attempt.append((mntpoint, size, type, grow, -1))
try:
- ddruid.attempt (attempt, "Junk Argument", 0)
+ ddruid.attempt (attempt, "Junk Argument", self.createParts)
return 1
except:
# life's a female dog <shrug> -- we should log something though
@@ -43,6 +47,9 @@ class InstallClass:
self.lilo = (location, linear, appendLine)
+ def setClearPart(self, clear):
+ self.clearPart = clear
+
def getLiloInformation(self):
return self.lilo
@@ -122,6 +129,7 @@ class InstallClass:
self.nameserver = ""
self.partitions = []
self.skipPartitioning = 0
+ self.clearPart = 0
# custom installs are easy :-)
class CustomInstall(InstallClass):