summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-04-12 18:53:20 +0000
committerJeremy Katz <katzj@redhat.com>2007-04-12 18:53:20 +0000
commitcdf7dd386e2c0cd9ee8c70ce512a8197872ea172 (patch)
treed9672084f341c9f6c5d2d9b18080a1c67ced95f9 /image.py
parent7c0db3f2f7697a67b2814481e92573f8b7bfc68c (diff)
downloadanaconda-cdf7dd386e2c0cd9ee8c70ce512a8197872ea172.tar.gz
anaconda-cdf7dd386e2c0cd9ee8c70ce512a8197872ea172.tar.xz
anaconda-cdf7dd386e2c0cd9ee8c70ce512a8197872ea172.zip
2007-04-12 Jeremy Katz <katzj@redhat.com>
* urlinstall.py (UrlInstallMethod.systemMounted): Don't copy stage2.img if we can't find it * image.py (CdromInstallMethod.systemMounted): Likewise. * anaconda (setupEnvironment): Make sure we have /sbin and /usr/sbin in our path
Diffstat (limited to 'image.py')
-rw-r--r--image.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/image.py b/image.py
index dd284ef8b..dd124a910 100644
--- a/image.py
+++ b/image.py
@@ -158,6 +158,10 @@ class CdromInstallMethod(ImageInstallMethod):
self.loopbackFile = None
def systemMounted(self, fsset, chroot):
+ if not os.path.exists("%s/images/stage2.img" %(self.tree,)):
+ log.debug("Not copying non-existent stage2.img")
+ return
+
self.loopbackFile = "%s%s%s" % (chroot,
fsset.filesystemSpace(chroot)[0][0],
"/rhinstall-stage2.img")