summaryrefslogtreecommitdiff
path: root/vmdebootstrap/base.py
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-08-15 17:57:25 +0200
committerNeil Williams <codehelp@debian.org>2015-08-16 14:28:53 +0200
commit9d776bb74654b80815fe08d87b5237e577ef1099 (patch)
tree176c87e7d849637749645b86f59b09633dd12865 /vmdebootstrap/base.py
parent4076819572f4dec90050771a58a4753d20a3f68b (diff)
downloadvmdebootstrap-9d776bb74654b80815fe08d87b5237e577ef1099.tar.gz
fixups
Diffstat (limited to 'vmdebootstrap/base.py')
-rw-r--r--vmdebootstrap/base.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/vmdebootstrap/base.py b/vmdebootstrap/base.py
index 1843d56..e840855 100644
--- a/vmdebootstrap/base.py
+++ b/vmdebootstrap/base.py
@@ -157,15 +157,6 @@ class Base(object):
"%s usage: %s", self.settings['image'],
runcmd(['du', self.settings['image']]))
- def optimize_image(self, rootdir):
- """
- Filing up the image with zeros will increase its compression rate
- """
- if not self.settings['sparse']:
- zeros = os.path.join(rootdir, 'ZEROS')
- self.runcmd_unchecked(['dd', 'if=/dev/zero', 'of=' + zeros, 'bs=1M'])
- runcmd(['rm', '-f', zeros])
-
def append_serial_console(self, rootdir):
if self.settings['serial-console']:
serial_command = self.settings['serial-console-command']