bootstrap-vz/base/fs/partitionmaps/none.py

16 lines
337 B
Python
Raw Normal View History

from ..partitions.single import SinglePartition
class NoPartitions(object):
def __init__(self, data):
root = data['root']
self.root = SinglePartition(root['size'], root['filesystem'])
self.partitions = [self.root]
def is_blocking(self):
2013-10-05 22:01:05 +02:00
return self.root.fsm == 'mounted'
def get_total_size(self):
return self.root.size