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

git-archive
devrandom 13 years ago
parent 28bb421156
commit 5e77059137

@ -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

Loading…
Cancel
Save