mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Remove init from LOVol, add mount_specials
This commit is contained in:
parent
3993ff23a5
commit
fc0471f780
1 changed files with 5 additions and 3 deletions
|
@ -12,16 +12,18 @@ class LoopbackVolume(Volume):
|
|||
events = [{'name': 'create', 'src': 'nonexistent', 'dst': 'detached'},
|
||||
{'name': 'attach', 'src': 'detached', 'dst': 'attached'},
|
||||
{'name': 'link_dm_node', 'src': 'attached', 'dst': 'linked'},
|
||||
{'name': 'mount_specials', 'src': 'linked', 'dst': 'lnk_specials_mounted'},
|
||||
{'name': 'unmount_specials', 'src': 'lnk_specials_mounted', 'dst': 'linked'},
|
||||
{'name': 'unlink_dm_node', 'src': 'linked', 'dst': 'attached'},
|
||||
{'name': 'detach', 'src': 'attached', 'dst': 'detached'},
|
||||
{'name': 'delete', 'src': 'detached', 'dst': 'deleted'},
|
||||
|
||||
{'name': 'mount_specials', 'src': 'linked', 'dst': 'specials_mounted'},
|
||||
{'name': 'unmount_specials', 'src': 'specials_mounted', 'dst': 'linked'},
|
||||
]
|
||||
|
||||
extension = 'raw'
|
||||
|
||||
def __init__(self, partition_map):
|
||||
super(LoopbackVolume, self).__init__(partition_map)
|
||||
|
||||
def create(self, image_path):
|
||||
self.fsm.create(image_path=image_path)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue