summaryrefslogtreecommitdiffstats
path: root/installclasses
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-01-31 14:57:11 +0000
committerChris Lumens <clumens@redhat.com>2007-01-31 14:57:11 +0000
commit0eb7fa4915643c911a0517c385058d14c5256f54 (patch)
tree4859d9714ff4478cddaefbfbb840a793bf6c32e7 /installclasses
parent9ff0ec9bab9184a78c4fb8ba7f3683339c0cfefd (diff)
downloadanaconda-0eb7fa4915643c911a0517c385058d14c5256f54.tar.gz
anaconda-0eb7fa4915643c911a0517c385058d14c5256f54.tar.xz
anaconda-0eb7fa4915643c911a0517c385058d14c5256f54.zip
Don't set up the default partitions if we're on a kickstart install. autopart
will handle that for us.
Diffstat (limited to 'installclasses')
-rw-r--r--installclasses/fedora.py6
-rw-r--r--installclasses/rhel.py6
2 files changed, 8 insertions, 4 deletions
diff --git a/installclasses/fedora.py b/installclasses/fedora.py
index b3182fa9e..26f77159e 100644
--- a/installclasses/fedora.py
+++ b/installclasses/fedora.py
@@ -34,8 +34,10 @@ class InstallClass(BaseInstallClass):
def setInstallData(self, anaconda):
BaseInstallClass.setInstallData(self, anaconda)
- BaseInstallClass.setDefaultPartitioning(self, anaconda.id.partitions,
- CLEARPART_TYPE_LINUX)
+
+ if not anaconda.isKickstart:
+ BaseInstallClass.setDefaultPartitioning(self, anaconda.id.partitions,
+ CLEARPART_TYPE_LINUX)
def setGroupSelection(self, anaconda):
grps = anaconda.backend.getDefaultGroups(anaconda)
diff --git a/installclasses/rhel.py b/installclasses/rhel.py
index fa20c31d9..32c7bb88b 100644
--- a/installclasses/rhel.py
+++ b/installclasses/rhel.py
@@ -29,8 +29,10 @@ class InstallClass(BaseInstallClass):
def setInstallData(self, anaconda):
BaseInstallClass.setInstallData(self, anaconda)
- BaseInstallClass.setDefaultPartitioning(self, anaconda.id.partitions,
- CLEARPART_TYPE_LINUX)
+
+ if not anaconda.isKickstart:
+ BaseInstallClass.setDefaultPartitioning(self, anaconda.id.partitions,
+ CLEARPART_TYPE_LINUX)
def setGroupSelection(self, anaconda):
grps = anaconda.backend.getDefaultGroups(anaconda)