rackerlabs/teeth-agent — pull request #48 by jayofdoom (2014-01-31 23:16:40+00:00)
Title: speedup(image): Use dd to write image

- Converting the image to raw first takes around 2 seconds in a ramdisk,
but using dd to image the disk speeds up imaging almost 2x by allowing
use of direct IO and blocksizes.
- We may need, in the future, to be able to configure the options passed
to dd based on the hardware we're imaging onto. These options have
been confirmed as better than qemu-img on most hardware.

I'm not convinced this is the most efficient settings possible, but I'd like to get this in now as it reduces the time needed to image by about half.