remove some more stuff

This commit is contained in:
Michael Hudson-Doyle 2017-03-13 10:37:05 +13:00
parent 4eb7ca6550
commit 6b007f5fc7
1 changed files with 4 additions and 22 deletions

View File

@ -33,34 +33,16 @@ class AttrDict(dict):
__setattr__ = dict.__setitem__
@attr.s
class FS:
def __init__(self, label, is_mounted):
self.label = label
self.is_mounted = is_mounted
label = attr.ib()
is_mounted = attr.ib()
class OldFilesystemModel(object):
""" Model representing storage options
"""
supported_filesystems = [
('ext4', True, FS('ext4', True)),
('xfs', True, FS('xfs', True)),
('btrfs', True, FS('btrfs', True)),
('---', False),
('swap', True, FS('swap', False)),
('bcache cache', True, FS('bcache cache', False)),
('bcache store', True, FS('bcache store', False)),
('---', False),
('leave unformatted', True, FS('leave unformatted', False)),
]
partition_flags = [
'boot',
'lvm',
'raid',
'bios_grub',
]
# TODO: what is "linear" level?
raid_levels = [
"0",