summaryrefslogtreecommitdiffstats
path: root/iw/rootpartition.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-09-01 00:24:43 +0000
committerErik Troan <ewt@redhat.com>1999-09-01 00:24:43 +0000
commit3f92666dcb0171105dfc38eff8b31fec2c983e92 (patch)
treed4bb64bb41c7eeb3fa74c7e473fd22a93c4c788e /iw/rootpartition.py
parentddb1c1454012411f2636c59d651be3bd98151692 (diff)
downloadanaconda-3f92666dcb0171105dfc38eff8b31fec2c983e92.tar.gz
anaconda-3f92666dcb0171105dfc38eff8b31fec2c983e92.tar.xz
anaconda-3f92666dcb0171105dfc38eff8b31fec2c983e92.zip
changes to make partitioning work in kickstart
Diffstat (limited to 'iw/rootpartition.py')
-rw-r--r--iw/rootpartition.py33
1 files changed, 22 insertions, 11 deletions
diff --git a/iw/rootpartition.py b/iw/rootpartition.py
index 72ccc9589..957ba308a 100644
--- a/iw/rootpartition.py
+++ b/iw/rootpartition.py
@@ -29,20 +29,21 @@ class PartitionWindow (InstallWindow):
ics.setHTML ("<HTML><BODY>Select a root partition"
"</BODY></HTML>")
ics.setNextEnabled (TRUE)
+ self.skippedScreen = 0
def getNext (self):
- print "calling self.ddruid.next ()"
- self.todo.ddruid.next ()
- print "done calling self.ddruid.next ()"
+ self.todo.ddruid.next ()
- win = self.todo.ddruid.getConfirm ()
- if win:
- print "confirm"
- bin = GtkFrame (None, _obj = win)
- bin.set_shadow_type (SHADOW_NONE)
- window = ConfirmPartitionWindow
- window.window = bin
- return window
+ if not self.skippedScreen:
+
+ win = self.todo.ddruid.getConfirm ()
+ if win:
+ print "confirm"
+ bin = GtkFrame (None, _obj = win)
+ bin.set_shadow_type (SHADOW_NONE)
+ window = ConfirmPartitionWindow
+ window.window = bin
+ return window
fstab = self.todo.ddruid.getFstab ()
for (partition, mount, fsystem, size) in fstab:
@@ -56,13 +57,23 @@ class PartitionWindow (InstallWindow):
def getScreen (self):
from gnomepyfsedit import fsedit
+ if self.skippedScreen:
+ # if we skipped it once, skip it again
+ return None
+
if not self.todo.ddruid:
drives = self.todo.drives.available ().keys ()
drives.sort ()
self.todo.ddruid = \
fsedit(1, drives, [])
+ self.todo.ddruid.next()
self.todo.ddruid.setCallback (self.enableCallback, self)
+ self.todo.instClass.finishPartitioning(self.todo.ddruid)
+ if (self.todo.instClass.skipPartitioning):
+ self.skippedScreen = 1
+ return None
+
self.bin = GtkFrame (None, _obj = self.todo.ddruid.getWindow ())
self.bin.set_shadow_type (SHADOW_NONE)
self.todo.ddruid.edit ()