From d3688d876694bcb5936e30c0a4d308d7c5f3ed28 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Sat, 23 Jan 2016 15:50:38 +0000 Subject: add a message when filling with zeroes which can take some time with large images --- bin/vmdebootstrap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') 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]) -- cgit v1.2.1