mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +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])
|
||||
|
||||
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
|
||||
|
||||
def _before_detach(self, e):
|
||||
|
|
Loading…
Add table
Reference in a new issue