summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-09 20:15:18 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-09 20:15:18 +0000
commitf6085473a01ef5e6c9ca28021e951dd71f3ce0c0 (patch)
tree780fbb89110eaf6ee68394bb9cc295473ac09f0c /iw
parent3e0d32e619e3a744f146ef061b13b0db1e8e9d3a (diff)
downloadanaconda-f6085473a01ef5e6c9ca28021e951dd71f3ce0c0.tar.gz
anaconda-f6085473a01ef5e6c9ca28021e951dd71f3ce0c0.tar.xz
anaconda-f6085473a01ef5e6c9ca28021e951dd71f3ce0c0.zip
fdisk works again; main change is making sure we close the disk devices
before running fdisk so the magic reread partition tables ioctl can work
Diffstat (limited to 'iw')
-rw-r--r--iw/fdisk_gui.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/iw/fdisk_gui.py b/iw/fdisk_gui.py
index 1d59d671d..0b046027f 100644
--- a/iw/fdisk_gui.py
+++ b/iw/fdisk_gui.py
@@ -13,8 +13,8 @@ class FDiskWindow (InstallWindow):
ics.readHTML ("fdisk")
def getNext(self):
-
# reread partitions
+ self.diskset.refreshDevices()
self.partrequests.setFromDisk(self.diskset)
return None
@@ -29,11 +29,13 @@ class FDiskWindow (InstallWindow):
except:
# XXX fixme
pass
+
self.ics.readHTML ("fdisk")
self.ics.setPrevEnabled (1)
self.ics.setNextEnabled (1)
# self.ics.setHelpEnabled (1)
+
def button_clicked (self, widget, drive):
zvt = ZvtTerm (80, 24)
zvt.set_del_key_swap(TRUE)
@@ -63,7 +65,7 @@ class FDiskWindow (InstallWindow):
self.ics.setNextEnabled (0)
# FDiskWindow tag="fdisk"
- def getScreen (self, useFdisk, diskset, partrequests):
+ def getScreen (self, diskset, partrequests):
self.diskset = diskset
self.partrequests = partrequests
@@ -74,7 +76,12 @@ class FDiskWindow (InstallWindow):
box = GtkVButtonBox ()
label = GtkLabel (_("Select drive to run fdisk on"))
- for drive in self.diskset.driveList():
+ drives = self.diskset.driveList()
+
+ # close all references we had to the diskset
+ self.diskset.closeDevices()
+
+ for drive in drives:
button = GtkButton (drive)
button.connect ("clicked", self.button_clicked, drive)
box.add (button)