Using backing image instead of copy for qemu image. From lukejr.

This commit is contained in:
devrandom 2012-04-22 10:42:18 -07:00
parent 28bb421156
commit 5e77059137

View File

@ -45,7 +45,7 @@ BASE=base-$SUITE-$ARCH-root
OUT=target-$SUITE-$ARCH-root OUT=target-$SUITE-$ARCH-root
if [ -z "$USE_LXC" ]; then if [ -z "$USE_LXC" ]; then
cp $BASE.qcow2 $OUT.qcow2 qemu-img create -f qcow2 -o backing_file="$BASE.qcow2" "$OUT.qcow2"
else else
sudo rm -rf $OUT sudo rm -rf $OUT
sudo cp -a $BASE $OUT sudo cp -a $BASE $OUT