summaryrefslogtreecommitdiffstats
path: root/textw
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 /textw
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 'textw')
-rw-r--r--textw/fdisk_text.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/textw/fdisk_text.py b/textw/fdisk_text.py
index 14c1ece72..1bf9c8157 100644
--- a/textw/fdisk_text.py
+++ b/textw/fdisk_text.py
@@ -22,16 +22,16 @@ from translate import _, cat, N_
from constants_text import *
class fdiskPartitionWindow:
- def __call__(self, screen, useFdisk, diskset, partrequests):
- if not useFdisk:
- return INSTALL_NOOP
-
+ def __call__(self, screen, diskset, partrequests):
choices = []
drives = diskset.disks.keys()
drives.sort()
for drive in drives:
choices.append("%s" %(drive))
+ # close all references we had to the diskset
+ diskset.closeDevices()
+
button = None
while button != "done" and button != "back":
(button, choice) = \
@@ -63,7 +63,9 @@ class fdiskPartitionWindow:
except:
pass
- partrequests.setFromDisk(diskset)
+
+ diskset.refreshDevices()
+ partrequests.setFromDisk(diskset)
if button == TEXT_BACK_CHECK:
return INSTALL_BACK