Permalink
Browse files

let's use the empty 'trick' to have smaller debian boxes also

  • Loading branch information...
1 parent 27cfc59 commit c2f350c808c75334e2d34823d441f637de2466e1 @mdxp committed Jun 29, 2011
@@ -46,4 +46,9 @@ apt-get -y remove linux-headers-$(uname -r) build-essential
apt-get -y autoremove
rm VBoxGuestAdditions_$VBOX_VERSION.iso
+
+# Zero out the free space to save space in the final image:
+dd if=/dev/zero of=/EMPTY bs=1M
+rm -f /EMPTY
+
exit
@@ -59,4 +59,9 @@ apt-get -y remove linux-headers-$(uname -r) build-essential
apt-get -y autoremove
rm /tmp/VBoxGuestAdditions_$VBOX_VERSION.iso
+
+# Zero out the free space to save space in the final image:
+dd if=/dev/zero of=/EMPTY bs=1M
+rm -f /EMPTY
+
exit

0 comments on commit c2f350c

Please sign in to comment.