summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-07-15 16:16:42 +0000
committerErik Troan <ewt@redhat.com>2000-07-15 16:16:42 +0000
commit656a291da7d33ab43ed9cc91c5f3df0849895033 (patch)
treed26cbf6ff8ec5008d2ba4275f35aa08d8ca3ea4a /todo.py
parent01a6f27bb7a877fea23f75cfd9adeacd02bb566a (diff)
downloadanaconda-656a291da7d33ab43ed9cc91c5f3df0849895033.tar.gz
anaconda-656a291da7d33ab43ed9cc91c5f3df0849895033.tar.xz
anaconda-656a291da7d33ab43ed9cc91c5f3df0849895033.zip
turned post-install dialog into a progress bar, of sorts
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py21
1 files changed, 19 insertions, 2 deletions
diff --git a/todo.py b/todo.py
index 4db06dc21..1211dc600 100644
--- a/todo.py
+++ b/todo.py
@@ -1539,8 +1539,8 @@ class ToDo:
p.h[rpm.RPMTAG_ARCH]))
self.instLog.close ()
- w = self.intf.waitWindow(_("Post Install"),
- _("Performing post install configuration..."))
+ w = self.intf.progressWindow(_("Post Install"),
+ _("Performing post install configuration..."), 8)
try:
if not self.upgrade:
@@ -1553,6 +1553,8 @@ class ToDo:
self.createRemovable("zip", partNum = 4)
self.createRemovable("jaz", partNum = 4)
+ w.set(1);
+
self.copyExtraModules()
self.fstab.write (self.instPath)
self.writeConfiguration ()
@@ -1561,6 +1563,8 @@ class ToDo:
self.initlevel = self.instClass.defaultRunlevel
self.setDefaultRunlevel ()
+ w.set(2);
+
# pcmcia is supported only on i386 at the moment
if arch == "i386":
pcmcia.createPcmciaConfig(self.instPath + "/etc/sysconfig/pcmcia")
@@ -1579,6 +1583,8 @@ class ToDo:
self.x.write (self.instPath + "/etc/X11")
self.setDefaultRunlevel ()
+ w.set(3);
+
# blah. If we're on a serial mouse, and we have X, we need to
# close the mouse device, then run kudzu, then open it again.
@@ -1617,6 +1623,8 @@ class ToDo:
except RuntimeError:
pass
+ w.set(4);
+
# needed for prior systems which were not xinetd based
if self.upgrade:
self.migrateXinetd()
@@ -1637,18 +1645,27 @@ class ToDo:
else:
raise RuntimeError, "What kind of machine is this, anyway?!"
+ w.set(5);
+
+
# go ahead and depmod modules as modprobe in rc.sysinit
# will complain loaduly if we don't do it now.
self.depmodModules()
+ w.set(6);
+
self.instClass.postAction(self.instPath, self.serial)
+ w.set(7);
+
if self.setupFilesystems:
f = open("/tmp/cleanup", "w")
self.method.writeCleanupPath(f)
self.fstab.writeCleanupPath(f)
f.close()
+ w.set(8);
+
del syslog
finally: