diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-05-09 21:18:18 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-05-09 21:18:18 +0000 |
commit | e519f2a1462bc6c52c567edbb829c57bd2d12d6e (patch) | |
tree | cb653bea263e8027249b2337461e327d8aa9982f | |
parent | 73b7bef61ddd25498207408c31836c8399bfe876 (diff) | |
download | anaconda-e519f2a1462bc6c52c567edbb829c57bd2d12d6e.tar.gz anaconda-e519f2a1462bc6c52c567edbb829c57bd2d12d6e.tar.xz anaconda-e519f2a1462bc6c52c567edbb829c57bd2d12d6e.zip |
we don't handle None filesystem types very well really if they're not
freespace/extended partitions. go to foreign for now (which is the old
behavior changed in rev 1.35.6.6, should some day fix better)
-rw-r--r-- | partitions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/partitions.py b/partitions.py index 7780145a8..25d44dc63 100644 --- a/partitions.py +++ b/partitions.py @@ -109,6 +109,12 @@ class Partitions: 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 handling + # instead some day. + if ptype is None: + ptype = fsset.fileSystemTypeGet("foreign") start = part.geom.start end = part.geom.end |