summaryrefslogtreecommitdiffstats
path: root/virt-bootstrap.py
Commit message (Collapse)AuthorAgeFilesLines
* Move source files in src/virtBootstrapRadostin Stoyanov2017-06-161-139/+0
| | | | Preparatory commit before setup.py introduction.
* Add support for layer extraction in qcow2 imagesRadostin Stoyanov2017-06-161-1/+4
| | | | | | | | | Add support for extracting image layers in qcow2 format. Avoid requirement for root privileges by using libguestfs. - Use "qemu-img" to create backing chain which links the layers. - Use "virt-format" to format the qcow2 image. - Use "virt-tar-in" to extract each tar archives in the qcow2 image.
* Cache downloaded container imagesRadostin Stoyanov2017-06-071-1/+7
| | | | | Store container images downloaded with skopeo to avoid re-download. Allow user to disable this option by passing "--no-cache" parameter
* Improve code fomattingRadostin Stoyanov2017-06-071-22/+32
| | | | | Follow PEP8 using pycodestyle https://pypi.python.org/pypi/pycodestyle/
* Handle error case when creating destination folderRadostin Stoyanov2017-04-141-1/+2
| | | | | | `OSError: [Errno 17] File exists: ...` error occurs when trying to create the destination directory specified from the user without checking if it already exists.
* Python 3/2 compatibility: gettext.install unicode flagRadostin Stoyanov2017-04-141-1/+0
| | | | | | | | The unicode flag is passed to `gettext.install` has default value `False` in Python2. [1] In Python3 this flag does not exists. [2] [1] https://docs.python.org/2/library/gettext.html#gettext.NullTranslations.install [2] https://docs.python.org/3.5/library/gettext.html#gettext.NullTranslations.install
* Python 3/2 compatibility: exceptions handlingRadostin Stoyanov2017-04-141-2/+2
| | | | | | | | Examine an exception during exception handling in Python3 is done with 'as' instead of comma. This approach works in Python2 as well. https://wiki.python.org/moin/HandlingExceptions
* Initial commitCédric Bosdonnat2017-03-071-0/+120