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

[PATCH 1/6] Run clearpart prior to partitioning (you get CLEARPART_TYPE_LINUX).



---
 pyanaconda/install.py               |    1 +
 pyanaconda/ui/gui/spokes/storage.py |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/install.py b/pyanaconda/install.py
index 4b1f4d2..2b0eb5d 100644
--- a/pyanaconda/install.py
+++ b/pyanaconda/install.py
@@ -32,6 +32,7 @@ def doInstall(storage, payload, ksdata, instClass):
     from pyanaconda import progress
 
     # First, run all the execute methods of the ksdata.
+    ksdata.clearpart.execute(storage, ksdata, instClass)
     ksdata.bootloader.execute(storage, ksdata, instClass)
     ksdata.autopart.execute(storage, ksdata, instClass)
 
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 965b7bc..fe5f39f 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -49,6 +49,8 @@ from pyanaconda.ui.gui.utils import enlightbox, gdk_threaded
 from pyanaconda.storage.size import Size
 from pyanaconda.product import productName
 
+from pykickstart.constants import *
+
 import gettext
 
 _ = lambda x: gettext.ldgettext("anaconda", x)
@@ -340,11 +342,13 @@ class StorageSpoke(NormalSpoke):
         self._ready = False
         self.selected_disks = self.data.ignoredisk.onlyuse[:]
         self.autopart = self.data.autopart.autopart
+        self.clearPartType = CLEARPART_TYPE_LINUX
 
     def apply(self):
         self.data.ignoredisk.onlyuse = self.selected_disks[:]
         self.data.autopart.autopart = self.autopart
         self.data.bootloader.location = "mbr"
+        self.data.clearpart.type = self.clearPartType
 
     @property
     def completed(self):
-- 
1.7.7.6


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