FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 04-18-2012, 06:25 PM
David Lehman
 
Default 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

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

Thread Tools




All times are GMT. The time now is 03:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org