bootstrap-vz/base/fs/partitionmaps/none.py
Anders Ingemann 387aa62750 Remove FSM from NoPartitions p-map
Don't set the volume device_path by calling 'create'
2013-10-27 18:11:55 +01:00

15 lines
334 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.is_blocking()
def get_total_size(self):
return self.root.size