def get_supported_filesystems(): fs_types = [] for cls in device_formats.values(): obj = cls() # btrfs is always handled by on_device_type_changed supported_fs = (obj.supported and obj.formattable and (isinstance(obj, FS) or obj.type in ["biosboot", "prepboot", "swap"])) if supported_fs: fs_types.append(obj) return fs_types
def get_supported_filesystems(): fs_types = [] for cls in device_formats.values(): obj = cls() # btrfs is always handled by on_device_type_changed supported_fs = (obj.supported and obj.formattable and (isinstance(obj, FS) or obj.type in ["biosboot", "prepboot", "swap"])) if supported_fs: fs_types.append(obj) return fs_types