On Thu, 2017-08-03 at 14:13 +0100, Radostin Stoyanov wrote: > --- > src/virtBootstrap/sources/docker_source.py | 6 +++++- > src/virtBootstrap/sources/file_source.py | 11 +++++------ > 2 files changed, 10 insertions(+), 7 deletions(-) > > diff --git a/src/virtBootstrap/sources/docker_source.py b/src/virtBootstrap/sources/docker_source.py > index 63865d8..9d7c187 100644 > --- a/src/virtBootstrap/sources/docker_source.py > +++ b/src/virtBootstrap/sources/docker_source.py > @@ -267,7 +267,11 @@ class DockerSource(object): > elif self.output_format == 'qcow2': > self.progress("Extracting container layers into qcow2 images", > value=50, logger=logger) > - utils.extract_layers_in_qcow2(self.layers, dest, self.progress) > + utils.Build_QCOW2_Image( > + tar_files=self.tar_files, > + dest=dest, > + progress=self.progress > + ) > else: > raise Exception("Unknown format:" + self.output_format) > > diff --git a/src/virtBootstrap/sources/file_source.py b/src/virtBootstrap/sources/file_source.py > index c02f735..760e50a 100644 > --- a/src/virtBootstrap/sources/file_source.py > +++ b/src/virtBootstrap/sources/file_source.py > @@ -63,14 +63,13 @@ class FileSource(object): > utils.safe_untar(self.path, dest) > > elif self.output_format == 'qcow2': > - # Remove the old path > - file_name = os.path.basename(self.path) > - qcow2_file = os.path.realpath('{}/{}.qcow2'.format(dest, > - file_name)) > - > self.progress("Extracting files into qcow2 image", value=0, > logger=logger) > - utils.create_qcow2(self.path, qcow2_file) > + utils.Build_QCOW2_Image( > + tar_files=[self.path], > + dest=dest, > + progress=self.progress > + ) > else: > raise Exception("Unknown format:" + self.output_format) > ACK, merged with #14 -- Cedric _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list