remove some more stuff
This commit is contained in:
parent
4eb7ca6550
commit
6b007f5fc7
|
@ -33,34 +33,16 @@ class AttrDict(dict):
|
||||||
__setattr__ = dict.__setitem__
|
__setattr__ = dict.__setitem__
|
||||||
|
|
||||||
|
|
||||||
|
@attr.s
|
||||||
class FS:
|
class FS:
|
||||||
def __init__(self, label, is_mounted):
|
label = attr.ib()
|
||||||
self.label = label
|
is_mounted = attr.ib()
|
||||||
self.is_mounted = is_mounted
|
|
||||||
|
|
||||||
class OldFilesystemModel(object):
|
class OldFilesystemModel(object):
|
||||||
""" Model representing storage options
|
""" 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?
|
# TODO: what is "linear" level?
|
||||||
raid_levels = [
|
raid_levels = [
|
||||||
"0",
|
"0",
|
||||||
|
|
Loading…
Reference in New Issue