mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
16 lines
468 B
Python
16 lines
468 B
Python
from ..partitions.single import SinglePartition
|
|
|
|
|
|
class NoPartitions(object):
|
|
|
|
def __init__(self, data, bootloader):
|
|
from common.bytes import Bytes
|
|
self.root = SinglePartition(Bytes(data['root']['size']),
|
|
data['root']['filesystem'], data['root'].get('format_command', None))
|
|
self.partitions = [self.root]
|
|
|
|
def is_blocking(self):
|
|
return self.root.fsm.current == 'mounted'
|
|
|
|
def get_total_size(self):
|
|
return self.root.get_end()
|