mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Unmap partitions
This commit is contained in:
parent
6ddd8809a3
commit
fb0fa1e94e
1 changed files with 2 additions and 0 deletions
|
@ -74,3 +74,5 @@ class AbstractPartitionMap(FSMProxy):
|
|||
msg = 'The partition {partition} prevents the unmap procedure'.format(partition=partition)
|
||||
raise PartitionError(msg)
|
||||
log_check_call(['/sbin/kpartx', '-d', volume.device_path])
|
||||
for partition in self.partitions:
|
||||
partition.unmap()
|
||||
|
|
Loading…
Add table
Reference in a new issue