summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-12-20 13:54:55 +0000
committerNeil Williams <codehelp@debian.org>2015-12-20 13:54:55 +0000
commite3c0ec7dd93f63b824db9bc5df999afcadf6afba (patch)
tree65c17e609df2075ae0d15ab6ed79efa5b273932a /bin
parent44755d660520eade161bee83d665888fa57cdb56 (diff)
downloadvmdebootstrap-e3c0ec7dd93f63b824db9bc5df999afcadf6afba.tar.gz
Add support for converting final image to qcow2
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vmdebootstrap2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/vmdebootstrap b/bin/vmdebootstrap
index ff30853..b9dc559 100755
--- a/bin/vmdebootstrap
+++ b/bin/vmdebootstrap
@@ -124,6 +124,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
'included in the image.')
self.settings.boolean(['no-acpid'], 'do not install the acpid package', default=False)
self.settings.boolean(['no-update-initramfs'], 'Skip running update-initramfs', default=False)
+ self.settings.boolean(['convert-qcow2'], 'Convert final image to qcow2', default=False)
self.settings.boolean(['dry-run'], 'do not build, just test the options', default=False)
def process_args(self, args): # pylint: disable=too-many-branches,too-many-statements
@@ -266,6 +267,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
elif self.settings['squash']:
filesystem.squash_rootfs()
filesystem.chown()
+ filesystem.convert_image_to_qcow2()
except BaseException as e:
base.message('EEEK! Something bad happened...')