summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fstab.py4
-rw-r--r--image.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/fstab.py b/fstab.py
index b48bc310a..5e4746c6c 100644
--- a/fstab.py
+++ b/fstab.py
@@ -241,10 +241,10 @@ class Fstab:
raise TypeError, "unknown partition to format %s" % (device,)
# sorted largest to smallest
- def filesystemSpace(self):
+ def filesystemSpace(self, topMount):
space = {}
for (mntpoint, partition, fsystem, doFormat, size) in self.mountList():
- space[mntpoint] = isys.fsSpaceAvailable(mntpoint)
+ space[mntpoint] = isys.fsSpaceAvailable(topMount + '/' + mntpoint)
list = space.keys()
list.sort()
diff --git a/image.py b/image.py
index 6368b2b91..29e34799f 100644
--- a/image.py
+++ b/image.py
@@ -43,7 +43,7 @@ class CdromInstallMethod(ImageInstallMethod):
if changeloop == 0:
return
- self.loopbackFile = mntPoint + fstab.filesystemSpace()[0][0] + \
+ self.loopbackFile = mntPoint + fstab.filesystemSpace(mntPoint)[0][0] + \
"/rhinstall-stage2.img"
try: