[blivet:master] Include "ntfs" explicitly among unsupported filesystems.

mulhern amulhern at redhat.com
Tue Dec 9 15:38:28 UTC 2014

Previously, it was excluded from supported filesystems implicitly,
by means of the formattable attribute, which was always false for ntfs.

This does not change the behavior of anaconda at all, but allows more
consistent management of filesystems in blivet.

Signed-off-by: mulhern <amulhern at redhat.com>
 pyanaconda/ui/gui/spokes/custom.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index fca7f3f..e8ad559 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -286,11 +286,10 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
             obj = cls()
             # btrfs is always handled by on_device_type_changed
-            supported_fs = (obj.type != "btrfs" and
-                            obj.type != "tmpfs" and
+            supported_fs = (obj.type not in ("btrfs", "ntfs", "tmpfs") and
                             obj.supported and obj.formattable and
                             (isinstance(obj, FS) or
-                             obj.type in ["biosboot", "prepboot", "swap"]))
+                             obj.type in ("biosboot", "prepboot", "swap")))
             if supported_fs:

More information about the anaconda-patches mailing list