summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-01-06 23:56:37 +0000
committerJeremy Katz <katzj@redhat.com>2004-01-06 23:56:37 +0000
commit17643443c357d9b2b4679df46541269438193abf (patch)
tree222097ab97707426c9abdc7f63e68263b856e24e /partitions.py
parent61da66fee9a80bf833b2d6b9b3e7b2939c6e1b9a (diff)
downloadanaconda-17643443c357d9b2b4679df46541269438193abf.tar.gz
anaconda-17643443c357d9b2b4679df46541269438193abf.tar.xz
anaconda-17643443c357d9b2b4679df46541269438193abf.zip
remove auto-swap formatting hack from the 7.2 days. this used to be
really useful in the "use fdisk, set swap partition" case. it shouldn't really be necessary anymore (#107264)
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py20
1 files changed, 4 insertions, 16 deletions
diff --git a/partitions.py b/partitions.py
index 5f330bed6..649c62ce0 100644
--- a/partitions.py
+++ b/partitions.py
@@ -106,9 +106,6 @@ class Partitions:
ptype = fsset.fileSystemTypeGet("physical volume (LVM)")
else:
ptype = partedUtils.get_partition_file_system_type(part)
- if part.fs_type and part.fs_type.name == "linux-swap":
- # XXX this is a hack
- format = 1
# FIXME: we don't handle ptype being None very well, so
# just say it's foreign. Should probably fix None
@@ -170,13 +167,8 @@ class Partitions:
else:
fsystem = fsset.fileSystemTypeGet(fs)
- if fs == "swap":
- mnt = None
- # more forced swap format hacking
- format = 1
- else:
- mnt = None
- format = 0
+ mnt = None
+ format = 0
spares = len(devices) - numActive
spec = partRequests.RaidRequestSpec(fsystem, format = format,
@@ -236,12 +228,8 @@ class Partitions:
else:
fsystem = fsset.fileSystemTypeGet(fs)
- if fs == "swap":
- mnt = None
- format = 1
- else:
- mnt = None
- format = 0
+ mnt = 0
+ format = 0
spec = partRequests.LogicalVolumeRequestSpec(fsystem,
format = format,