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

16 lines
357 B
Python
Raw Normal View History

from ..partitions.single import SinglePartition
class NoPartitions(object):
2014-01-19 01:02:29 +01:00
def __init__(self, data, bootloader):
root = data['root']
self.root = SinglePartition(root['size'], root['filesystem'])
self.partitions = [self.root]
def is_blocking(self):
2013-11-26 21:07:39 +01:00
return self.root.fsm.current == 'mounted'
def get_total_size(self):
return self.root.size