summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-07-18 03:18:43 +0000
committerJeremy Katz <katzj@redhat.com>2002-07-18 03:18:43 +0000
commit0d1eb7ed658657c5b89f99fe872b3fdbfb00270b (patch)
tree377c3b93299e489484983914a13fc78ff7effc45
parent3eb920151006bb761b5378bb2f8384ee265da08c (diff)
downloadanaconda-0d1eb7ed658657c5b89f99fe872b3fdbfb00270b.tar.gz
anaconda-0d1eb7ed658657c5b89f99fe872b3fdbfb00270b.tar.xz
anaconda-0d1eb7ed658657c5b89f99fe872b3fdbfb00270b.zip
make sure we don't try to get fileSystemSpace() for swap partitions (#67987)
-rw-r--r--fsset.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/fsset.py b/fsset.py
index 687422b8a..bf422482a 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1248,10 +1248,12 @@ class FileSystemSet:
def filesystemSpace(self, chroot='/'):
space = []
- # XXX limit to ext[23] etc?
for entry in self.entries:
if not entry.isMounted():
continue
+ # we can't put swap files on swap partitions; that's nonsense
+ if entry.mountpoint == "swap":
+ continue
path = "%s/%s" % (chroot, entry.mountpoint)
try:
space.append((entry.mountpoint, isys.fsSpaceAvailable(path)))