summaryrefslogtreecommitdiffstats
path: root/partedUtils.py
diff options
context:
space:
mode:
authorharald <harald>2003-08-12 15:10:40 +0000
committerharald <harald>2003-08-12 15:10:40 +0000
commit8cd382f0c2ec400f091b296cf0bc627101ee248e (patch)
tree28d7cb53d785555af3bae0c6f81f3a4f4d8236b7 /partedUtils.py
parentea290a086b52a28865b0f867f39767d2ad49f985 (diff)
downloadanaconda-8cd382f0c2ec400f091b296cf0bc627101ee248e.tar.gz
anaconda-8cd382f0c2ec400f091b296cf0bc627101ee248e.tar.xz
anaconda-8cd382f0c2ec400f091b296cf0bc627101ee248e.zip
close all fds for dasdfmt and refreshDevices afterwards #102096
Diffstat (limited to 'partedUtils.py')
-rw-r--r--partedUtils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/partedUtils.py b/partedUtils.py
index 5f0bded5f..d40a06d40 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -706,6 +706,9 @@ class DiskSet:
def dasdFmt (self, intf = None, drive = None):
"""Format dasd devices (s390)."""
+
+ self.closeDevices()
+
w = intf.progressWindow (_("Initializing"),
_("Please wait while formatting drive %s...\n"
) % (drive,), 100)
@@ -778,7 +781,8 @@ class DiskSet:
w and w.pop()
isys.flushDriveDict()
-
+ self.refreshDevices()
+
if os.WIFEXITED(status) and (os.WEXITSTATUS(status) == 0):
return 0