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 > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 08-22-2011, 03:17 PM
Chris Lumens
 
Default Fix the partitioning section of interactive kickstart installs (#641861).

Note that behavior around going back from the examining UI to the part
type UI can be a little weird. If you have a kickstart file with partition
commands in it and you go back, those commands will be forgotten. This is
because we have no way of reloading the kickstart data short of reexecuting
the entire file (which is too messy).

On the other hand, it's kind of what you'd expect - if you go back from any
step, your choices are blanked out so you try again from scratch.
---
iw/autopart_type.py | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/iw/autopart_type.py b/iw/autopart_type.py
index 1931e9e..3179ebe 100644
--- a/iw/autopart_type.py
+++ b/iw/autopart_type.py
@@ -145,6 +145,9 @@ class PartitionTypeWindow(InstallWindow):
ics.setTitle("Automatic Partitioning")
ics.setNextEnabled(True)

+ def _isInteractiveKS(self):
+ return self.anaconda.isKickstart and self.anaconda.id.ksdata.interactive.interactive
+
def getNext(self):
if self.storage.checkNoDisks():
raise gui.StayOnScreen
@@ -152,10 +155,12 @@ class PartitionTypeWindow(InstallWindow):
# reset storage, this is only done when moving forward, not back
# temporarily unset storage.clearPartType so that all devices will be
# found during storage reset
- clearPartType = self.anaconda.id.storage.clearPartType
- self.anaconda.id.storage.clearPartType = None
- self.anaconda.id.storage.reset()
- self.anaconda.id.storage.clearPartType = clearPartType
+ if not self._isInteractiveKS() or
+ (self._isInteractiveKS() and len(self.storage.devicetree.findActions(type="crea te")) == 0):
+ clearPartType = self.anaconda.id.storage.clearPartType
+ self.anaconda.id.storage.clearPartType = None
+ self.anaconda.id.storage.reset()
+ self.anaconda.id.storage.clearPartType = clearPartType

self.storage.clearPartChoice = self.buttonGroup.getCurrent()

@@ -193,7 +198,9 @@ class PartitionTypeWindow(InstallWindow):
self.storage.retrofitPassphrase = False
self.storage.encryptedAutoPart = False

- self.storage.doAutoPart = True
+ if not self._isInteractiveKS() or
+ (self._isInteractiveKS() and len(self.storage.devicetree.findActions(type="crea te")) == 0):
+ self.storage.doAutoPart = True

self.dispatch.skipStep("cleardiskssel", skip = 0)
if self.reviewButton.get_active():
--
1.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 02:52 AM.

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