On Wed, 2014-01-29 at 14:00 +0100, Vratislav Podzimek wrote:
Otherwise the progress bar won't reach the 100 % if no AP/IPA is
configured to
be discovered.
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
---
pyanaconda/install.py | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/install.py b/pyanaconda/install.py
index c8181a3..7ad47c7 100644
--- a/pyanaconda/install.py
+++ b/pyanaconda/install.py
@@ -121,9 +121,14 @@ def doInstall(storage, payload, ksdata, instClass):
# those are the ones that take the most time.
steps = len(storage.devicetree.findActions(type="create",
object="format")) + \
len(storage.devicetree.findActions(type="resize",
object="format"))
- steps += 6
- # pre setup phase, packages setup, packages, bootloader, realmd,
- # post install
+
+ # pre setup phase, packages setup, packages, bootloader, post install
+ steps += 5
+
+ # joining AD/IPA domain
+ if ksdata.realm.join_realm:
+ steps += 1
+
progressQ.send_init(steps)
# This should be the only thread running, wait for the others to finish if not.
There seems to be some other issue causing that even with this fix, the
progress bar still doesn't reach 100 %. I'm trying to debug it now and
will send a more comprehensive patch.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic