diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-07-09 23:35:14 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-07-09 23:35:14 +0000 |
commit | 08b32cdf09c480e544bffeb56a8667766c218d97 (patch) | |
tree | 803cafb0da480d79aa698b79e04434ff64447856 /packages.py | |
parent | 00679f23c36200a9f10ec9118141c8a7d7e164c9 (diff) | |
download | anaconda-08b32cdf09c480e544bffeb56a8667766c218d97.tar.gz anaconda-08b32cdf09c480e544bffeb56a8667766c218d97.tar.xz anaconda-08b32cdf09c480e544bffeb56a8667766c218d97.zip |
split install step into three separate steps, doPreInstall, doInstall,
and doPostInstall
write out fstab at the end of doPreInstall
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/packages.py b/packages.py index 37223db87..850d76d4e 100644 --- a/packages.py +++ b/packages.py @@ -308,10 +308,13 @@ def turnOnFilesystems(dir, thefsset, diskset, upgrade, instPath): thefsset.makeFilesystems (instPath) thefsset.mountFilesystems (instPath) -def doInstall(method, id, intf, instPath): +def doPreInstall(method, id, intf, instPath, dir): if flags.test: return + if dir == DISPATCH_BACK: + return + arch = iutil.getArch () if arch == "alpha": @@ -400,6 +403,14 @@ def doInstall(method, id, intf, instPath): # "%s" % (i, msg)) pass + # write out the fstab + id.fsset.write(instPath) + +def doInstall(method, id, intf, instPath): + if flags.test: + return + + upgrade = id.upgrade.get() db = rpm.opendb(1, instPath) ts = rpm.TransactionSet(instPath, db) @@ -574,11 +585,17 @@ def doInstall(method, id, intf, instPath): id.instProgress = None +def doPostInstall(method, id, intf, instPath): + if flags.test: + return + createWindow = (intf.progressWindow, (_("Post Install"), _("Performing post install configuration..."), 8)) w = apply(apply, createWindow) + upgrade = id.upgrade.get() + arch = iutil.getArch () try: if not upgrade: # XXX should this go here? |