summaryrefslogtreecommitdiffstats
path: root/partitioning.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-06-21 23:33:28 +0000
committerJeremy Katz <katzj@redhat.com>2001-06-21 23:33:28 +0000
commita4dfb5a71e29fe6638d19bb3e77eb01835d4a480 (patch)
tree1e49b6c2699263276e42f9d561292a80803c5886 /partitioning.py
parent83653e74f1918187255e537945172dcbc8706e1c (diff)
downloadanaconda-a4dfb5a71e29fe6638d19bb3e77eb01835d4a480.tar.gz
anaconda-a4dfb5a71e29fe6638d19bb3e77eb01835d4a480.tar.xz
anaconda-a4dfb5a71e29fe6638d19bb3e77eb01835d4a480.zip
make sure swaps get formatted
Diffstat (limited to 'partitioning.py')
-rw-r--r--partitioning.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/partitioning.py b/partitioning.py
index 1f10c919d..bd30bc591 100644
--- a/partitioning.py
+++ b/partitioning.py
@@ -461,7 +461,8 @@ class PartitionRequests:
if part.type & parted.PARTITION_METADATA:
part = disk.next_partition(part)
continue
-
+
+ format = 0
if part.type & parted.PARTITION_FREESPACE:
ptype = None
elif part.type & parted.PARTITION_EXTENDED:
@@ -471,6 +472,8 @@ class PartitionRequests:
elif part.fs_type:
if part.fs_type.name == "linux-swap":
ptype = fileSystemTypeGet("swap")
+ # XXX this is a hack
+ format = 1
elif part.fs_type.name == "FAT":
ptype = fileSystemTypeGet("vfat")
else:
@@ -488,7 +491,7 @@ class PartitionRequests:
spec = PartitionSpec(ptype, requesttype = REQUEST_PREEXIST,
start = start, end = end, size = size,
- drive = drive)
+ drive = drive, format = format)
spec.device = PartedPartitionDevice(part).getDevice()
self.addRequest(spec)