Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with minimize.sh (Ubuntu 14.04 amd64) #214

Closed
guilliman opened this issue Apr 28, 2014 · 1 comment
Closed

Bug with minimize.sh (Ubuntu 14.04 amd64) #214

guilliman opened this issue Apr 28, 2014 · 1 comment

Comments

@guilliman
Copy link

This is normal behavior or a bug yet?

==> virtualbox: Provisioning with shell script: scripts/minimize.sh
    virtualbox: dd: error writing `/EMPTY': No space left on device
    virtualbox: 3345+0 records in
    virtualbox: 3344+0 records out
    virtualbox: 3506683904 bytes (3.5 GB) copied, 22.9182 s, 160 MB/s

script:

#!/bin/sh -eux

dd if=/dev/zero of=/EMPTY bs=1M
rm -f /EMPTY
# Block until the empty file has been removed, otherwise, Packer
# will try to kill the box while the disk is still full and that's bad
sync
sync
sync
@juliandunn
Copy link
Contributor

You're talking about the "dd: error writing '/EMPTY'" message, right? This is normal behavior as the idea is to fill up the remaining disk with zeroes and then delete it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants