mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
15 lines
357 B
Python
15 lines
357 B
Python
from ..partitions.single import SinglePartition
|
|
|
|
|
|
class NoPartitions(object):
|
|
|
|
def __init__(self, data, bootloader):
|
|
root = data['root']
|
|
self.root = SinglePartition(root['size'], root['filesystem'])
|
|
self.partitions = [self.root]
|
|
|
|
def is_blocking(self):
|
|
return self.root.fsm.current == 'mounted'
|
|
|
|
def get_total_size(self):
|
|
return self.root.size
|