mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Merge pull request #378 from Exy13/loops
Fix loopdevice partitions not being unmapped correctly
This commit is contained in:
commit
07a49529b8
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class LoopbackVolume(Volume):
|
||||||
log_check_call(['truncate', size_opt, self.image_path])
|
log_check_call(['truncate', size_opt, self.image_path])
|
||||||
|
|
||||||
def _before_attach(self, e):
|
def _before_attach(self, e):
|
||||||
[self.loop_device_path] = log_check_call(['losetup', '--show', '--find', self.image_path])
|
[self.loop_device_path] = log_check_call(['losetup', '--show', '--find', '--partscan', self.image_path])
|
||||||
self.device_path = self.loop_device_path
|
self.device_path = self.loop_device_path
|
||||||
|
|
||||||
def _before_detach(self, e):
|
def _before_detach(self, e):
|
||||||
|
|
Loading…
Add table
Reference in a new issue