summaryrefslogtreecommitdiffstats
path: root/upgrade.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-03-14 16:28:31 +0000
committerErik Troan <ewt@redhat.com>2001-03-14 16:28:31 +0000
commitb41445baedb1eb254519c614b8ce364e20f8c993 (patch)
tree9073e0f61b0e83d763ae9b668c439dd6a4bc8a80 /upgrade.py
parent53558095d35a111ee4dc0214c712fe37a0cb3610 (diff)
downloadanaconda-b41445baedb1eb254519c614b8ce364e20f8c993.tar.gz
anaconda-b41445baedb1eb254519c614b8ce364e20f8c993.tar.xz
anaconda-b41445baedb1eb254519c614b8ce364e20f8c993.zip
don't let them put swap files on non-ext2 partitions
Diffstat (limited to 'upgrade.py')
-rw-r--r--upgrade.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/upgrade.py b/upgrade.py
index 1421f494b..6a4748b44 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -135,10 +135,11 @@ def swapSuggestion(instPath, fstab):
fsList.append(info)
else:
for info in fstab.mountList():
- (mntpoint, partition) = info[0:2]
- space = isys.pathSpaceAvailable(instPath + mntpoint)
- info = (mntpoint, partition, space)
- fsList.append(info)
+ (mntpoint, partition, fsystem) = info[0:3]
+ if fsystem == "ext2":
+ space = isys.pathSpaceAvailable(instPath + mntpoint)
+ info = (mntpoint, partition, space)
+ fsList.append(info)
suggestion = mem * 2 - swap
suggSize = 0