diff options
author | Erik Troan <ewt@redhat.com> | 2001-03-14 16:28:31 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-03-14 16:28:31 +0000 |
commit | b41445baedb1eb254519c614b8ce364e20f8c993 (patch) | |
tree | 9073e0f61b0e83d763ae9b668c439dd6a4bc8a80 /upgrade.py | |
parent | 53558095d35a111ee4dc0214c712fe37a0cb3610 (diff) | |
download | anaconda-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.py | 9 |
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 |