summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-04-07 10:14:59 -0400
committerChris Lumens <clumens@redhat.com>2008-04-07 10:14:59 -0400
commit732e3550de5b233912ee36ebd7c1814ac0785a6a (patch)
tree465236a736cffae1c90b5a3460a09b29f845ab07 /yuminstall.py
parent64dc12129f37a00648954077b8217bcbd558d2b6 (diff)
downloadanaconda-732e3550de5b233912ee36ebd7c1814ac0785a6a.tar.gz
anaconda-732e3550de5b233912ee36ebd7c1814ac0785a6a.tar.xz
anaconda-732e3550de5b233912ee36ebd7c1814ac0785a6a.zip
Don't copy the stage2 image every time or on the way back.
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/yuminstall.py b/yuminstall.py
index 4cefea425..abeeb1790 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -332,6 +332,9 @@ class AnacondaYum(YumSorter):
if not flags.setupFilesystems:
return
+ if self._loopbackFile and os.path.exists(self._loopbackFile):
+ return
+
stage2img = None
if os.path.exists("/tmp/stage2.img"):
@@ -884,6 +887,9 @@ class YumBackend(AnacondaBackend):
pass
def doInitialSetup(self, anaconda):
+ if anaconda.dir == DISPATCH_BACK:
+ return DISPATCH_BACK
+
if anaconda.id.getUpgrade():
# FIXME: make sure that the rpmdb doesn't have stale locks :/
self._resetRpmDb(anaconda.rootPath)