diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-07-18 03:18:43 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-07-18 03:18:43 +0000 |
commit | 0d1eb7ed658657c5b89f99fe872b3fdbfb00270b (patch) | |
tree | 377c3b93299e489484983914a13fc78ff7effc45 | |
parent | 3eb920151006bb761b5378bb2f8384ee265da08c (diff) | |
download | anaconda-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.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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))) |