From: "Brian C. Lane" <bcl(a)redhat.com>
This was clearing custom partition errors as well. We only want to clear
the errors before re-running the StorageCheck thread.
Also add a check to make sure the StorageCheck thread is done before we
being complete. If it isn't done then the check for errors could be
invalid.
---
pyanaconda/ui/gui/spokes/storage.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 7aab762..2557132 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -413,9 +413,9 @@ class StorageSpoke(NormalSpoke, StorageChecker):
self.disks = getDisks(self.storage.devicetree)
else:
- self.errors = []
if self.autopart:
# this was already run as part of doAutoPartition. dumb.
+ self.errors = []
self.run()
finally:
self._ready = True
@@ -424,6 +424,7 @@ class StorageSpoke(NormalSpoke, StorageChecker):
@property
def completed(self):
return (threadMgr.get("AnaExecuteStorageThread") is None and
+ threadMgr.get("AnaCheckStorageThread") is None and
self.storage.rootDevice is not None and
not self.errors)
--
1.7.11.7