diff options
author | Mike Fulbright <msf@redhat.com> | 2001-07-20 16:30:35 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-07-20 16:30:35 +0000 |
commit | 3bd2d61e8498e0d4ef02766eb0a6191b3270e424 (patch) | |
tree | e85def94c968356dc41f336137e56c28e9c9a3fb /partitioning.py | |
parent | 0f6012a70a878791a8ecff51c6dbcb32e5649eac (diff) | |
download | anaconda-3bd2d61e8498e0d4ef02766eb0a6191b3270e424.tar.gz anaconda-3bd2d61e8498e0d4ef02766eb0a6191b3270e424.tar.xz anaconda-3bd2d61e8498e0d4ef02766eb0a6191b3270e424.zip |
also delete type 0x82, 0x83, and 0xfd partition types with no filesystem on them for CLEARPART_TYPE_LINUX
Diffstat (limited to 'partitioning.py')
-rw-r--r-- | partitioning.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/partitioning.py b/partitioning.py index d678a6daf..cd4dc38ca 100644 --- a/partitioning.py +++ b/partitioning.py @@ -164,6 +164,15 @@ def map_foreign_to_fsname(type): else: return _("Foreign") +def query_is_linux_native_by_numtype(numtype): + linuxtypes = [0x82, 0x83, 0xfd] + + for t in linuxtypes: + if int(numtype) == t: + return 1 + + return 0 + def filter_partitions(disk, func): rc = [] part = disk.next_partition () |