diff options
author | Neil Williams <codehelp@debian.org> | 2016-01-23 15:50:38 +0000 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2016-01-23 16:35:09 +0000 |
commit | d3688d876694bcb5936e30c0a4d308d7c5f3ed28 (patch) | |
tree | 9c5796dc1d9200b723f621d6481ca127e2c8f73c /bin | |
parent | 0c8cc8919c4bc7a6cea05315a364e09e7d448ce2 (diff) | |
download | vmdebootstrap-d3688d876694bcb5936e30c0a4d308d7c5f3ed28.tar.gz |
add a message when filling with zeroes which can take some time with large images
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/vmdebootstrap | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/vmdebootstrap b/bin/vmdebootstrap index 169da37..0fbd91e 100755 --- a/bin/vmdebootstrap +++ b/bin/vmdebootstrap @@ -474,9 +474,12 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth def optimize_image(self, rootdir): """ - Filing up the image with zeros will increase its compression rate + Filling up the image with zeros will increase its compression rate + Can take an appreciable amount of time in very large images. """ if not self.settings['sparse']: + base = self.handlers[Base.name] + base.message("Optimizing image for compression") zeros = os.path.join(rootdir, 'ZEROS') self.runcmd_unchecked(['dd', 'if=/dev/zero', 'of=' + zeros, 'bs=1M']) runcmd(['rm', '-f', zeros]) |