Browse Source

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

git-archive
devrandom 11 years ago
parent
commit
5e77059137
  1. 2
      libexec/make-clean-vm

2
libexec/make-clean-vm

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

Loading…
Cancel
Save