[PATCH 1/2] Fix thread synchronization issue going from storage to custom. (#860495)
David Lehman
dlehman at redhat.com
Wed Sep 26 18:25:48 UTC 2012
---
pyanaconda/ui/gui/spokes/custom.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index eb1d324..7e1a3e8 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -42,6 +42,8 @@ import re
from pykickstart.constants import *
from pyanaconda.product import productName, productVersion
+from pyanaconda.threads import threadMgr
+
from pyanaconda.storage.formats import device_formats
from pyanaconda.storage.formats import getFormat
from pyanaconda.storage.size import Size
@@ -550,6 +552,13 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
def refresh(self):
NormalSpoke.refresh(self)
+
+ # Make sure the storage spoke execute method has finished before we
+ # copy the storage instance.
+ t = threadMgr.get("AnaExecuteStorageThread")
+ if t:
+ t.join()
+
self._reset_storage()
self._do_refresh()
# update our free space number based on Storage
--
1.7.7.6
More information about the anaconda-patches
mailing list