mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Attach image to loopdevice in one command
This commit is contained in:
parent
5864665b1f
commit
e4e6035eb2
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ class Attach(Task):
|
|||
|
||||
def run(self, info):
|
||||
info.bootstrap_device = {}
|
||||
[info.bootstrap_device['path']] = log_check_call(['/sbin/losetup', '--find'])
|
||||
log_check_call(['/sbin/losetup', info.bootstrap_device['path'], info.loopback_file])
|
||||
command = ['/sbin/losetup', '--show', '--find', info.loopback_file]
|
||||
[info.bootstrap_device['path']] = log_check_call(command)
|
||||
|
||||
|
||||
class Detach(Task):
|
||||
|
|
Loading…
Add table
Reference in a new issue