Re: [PATCH 3/9] Don't set default partitioning in every kickstart case.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Looks good.

On 03/11/2009 10:32 AM, Chris Lumens wrote:
Turns out we don't want to do this because it'll result in the default autopart
scheme getting used regardless of what other partitioning commands are
specified.
---
  installclasses/fedora.py |    9 +++++----
  installclasses/rhel.py   |   10 ++++++----
  2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/installclasses/fedora.py b/installclasses/fedora.py
index 087e2d3..d2ddafa 100644
--- a/installclasses/fedora.py
+++ b/installclasses/fedora.py
@@ -62,10 +62,11 @@ class InstallClass(BaseInstallClass):
      def setInstallData(self, anaconda):
  	BaseInstallClass.setInstallData(self, anaconda)

-        BaseInstallClass.setDefaultPartitioning(self,
-                                                anaconda.id.storage,
-                                                anaconda.platform,
-                                                CLEARPART_TYPE_LINUX)
+        if not anaconda.isKickstart:
+            BaseInstallClass.setDefaultPartitioning(self,
+                                                    anaconda.id.storage,
+                                                    anaconda.platform,
+                                                    CLEARPART_TYPE_LINUX)

      def setSteps(self, anaconda):
  	BaseInstallClass.setSteps(self, anaconda);
diff --git a/installclasses/rhel.py b/installclasses/rhel.py
index 5217928..da25946 100644
--- a/installclasses/rhel.py
+++ b/installclasses/rhel.py
@@ -87,10 +87,12 @@ class InstallClass(BaseInstallClass):

      def setInstallData(self, anaconda):
  	BaseInstallClass.setInstallData(self, anaconda)
-        BaseInstallClass.setDefaultPartitioning(self,
-                                                anaconda.id.storage,
-                                                anaconda.platform,
-                                                CLEARPART_TYPE_LINUX)
+
+        if not anaconda.isKickstart:
+            BaseInstallClass.setDefaultPartitioning(self,
+                                                    anaconda.id.storage,
+                                                    anaconda.platform,
+                                                    CLEARPART_TYPE_LINUX)

      def setSteps(self, anaconda):
          dispatch = anaconda.dispatch


--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux