diff options
author | David Lehman <dlehman@redhat.com> | 2012-09-26 12:44:35 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2012-09-26 12:44:35 -0500 |
commit | e6a536b67116667f130e106bd03abdb9a73d0d12 (patch) | |
tree | 759740ca8178417d988508ac727c3e56c24ce4d5 /pyanaconda/ui | |
parent | c4477f99fea83c115f605efe0594f1b3093922a7 (diff) | |
download | anaconda-e6a536b67116667f130e106bd03abdb9a73d0d12.tar.gz anaconda-e6a536b67116667f130e106bd03abdb9a73d0d12.tar.xz anaconda-e6a536b67116667f130e106bd03abdb9a73d0d12.zip |
Fix thread synchronization issue going from storage to custom. (#860495)
Diffstat (limited to 'pyanaconda/ui')
-rw-r--r-- | 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 eb1d32432..7e1a3e8f5 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 |