summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-08-10 14:49:18 +0000
committerErik Troan <ewt@redhat.com>2000-08-10 14:49:18 +0000
commit53dd236f0060e2644e106797a91db4f0f206188e (patch)
treef2ffcabd959ee58ec6d11958b17f6942e5b903bb
parent58d55d42d4b01fe0e1093d12e76b9511f371c80e (diff)
downloadanaconda-53dd236f0060e2644e106797a91db4f0f206188e.tar.gz
anaconda-53dd236f0060e2644e106797a91db4f0f206188e.tar.xz
anaconda-53dd236f0060e2644e106797a91db4f0f206188e.zip
insert topmountdir into path when checking free space
-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: