mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
31 lines
550 B
Python
31 lines
550 B
Python
![]() |
from partitions.singlepartition import SinglePartition
|
||
|
|
||
|
|
||
|
class NoPartitions(object):
|
||
|
|
||
|
def __init__(self, data):
|
||
|
root = data['root']
|
||
|
self.root = SinglePartition(root['size'], root['filesystem'])
|
||
|
self.mount_points = [('/', self.root)]
|
||
|
|
||
|
def get_total_size(self):
|
||
|
return self.root.size
|
||
|
|
||
|
def create(self, volume):
|
||
|
pass
|
||
|
|
||
|
def map(self, volume):
|
||
|
pass
|
||
|
|
||
|
def unmap(self, volume):
|
||
|
pass
|
||
|
|
||
|
def format(self):
|
||
|
self.root.format()
|
||
|
|
||
|
def mount_root(self, destination):
|
||
|
self.root.mount(destination)
|
||
|
|
||
|
def unmount_root(self):
|
||
|
self.root.unmount()
|