bootstrap-vz/base/fs/partitions/single.py
Anders Ingemann d6502089e2 Implemented both MBR and GPT partitioning.
VirtualBox seems to not like GPT
2013-10-27 18:11:14 +01:00

13 lines
441 B
Python

from abstract import AbstractPartition
class SinglePartition(AbstractPartition):
events = [{'name': 'create', 'src': 'nonexistent', 'dst': 'created'},
{'name': 'format', 'src': 'created', 'dst': 'formatted'},
{'name': 'mount', 'src': 'formatted', 'dst': 'mounted'},
{'name': 'unmount', 'src': 'mounted', 'dst': 'formatted'},
]
def _create(self, e):
self.device_path = e.volume.device_path