summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-02-13 22:24:14 +0000
committerMatt Wilson <msw@redhat.com>2002-02-13 22:24:14 +0000
commit5991679cd8a5f3a021192c9a9ad4d8c67e06460c (patch)
treeabf707acfab0554f2df01ad240bea929dab3256d
parent76d7d2de6f08ca3dc889c1e460a6c0c2d0fd9a2a (diff)
downloadanaconda-5991679cd8a5f3a021192c9a9ad4d8c67e06460c.tar.gz
anaconda-5991679cd8a5f3a021192c9a9ad4d8c67e06460c.tar.xz
anaconda-5991679cd8a5f3a021192c9a9ad4d8c67e06460c.zip
fix for #59756, anaconda doesn't tell kernel to reread partition tables when doing anything but autopartitioning in GUI mode. This patch requires parted 1.4.24
-rw-r--r--partedUtils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/partedUtils.py b/partedUtils.py
index 66183a6f2..f7f403afb 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -418,17 +418,20 @@ class DiskSet:
"""Write the partition tables out to the disks."""
for disk in self.disks.values():
disk.write()
+ disk.close()
del disk
self.refreshDevices()
def refreshDevices (self, intf = None, initAll = 0, zeroMbr = 0):
"""Reread the state of the disks as they are on disk."""
+ self.closeDevices()
self.disks = {}
self.openDevices(intf, initAll, zeroMbr)
def closeDevices (self):
"""Close all of the disks which are open."""
for disk in self.disks.keys():
+ self.disks[disk].close()
del self.disks[disk]
def dasdFmt (self, intf = None, drive = None):