bootstrap-vz/base/fs/partitionmaps/none.py
2013-10-27 18:11:56 +01:00

15 lines
337 B
Python

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):
return self.root.fsm == 'mounted'
def get_total_size(self):
return self.root.size