Browse Source

Copy target image as a sparse file in LXC mode

This will save us from writing a lot of zeros on disk.
pull/72/head
Lunar 8 years ago committed by Georg Koppen
parent
commit
56bd00ea39
  1. 2
      libexec/make-clean-vm

2
libexec/make-clean-vm

@ -59,7 +59,7 @@ case $VMSW in @@ -59,7 +59,7 @@ case $VMSW in
qemu-img create -f qcow2 -o backing_file="$BASE.qcow2" "$OUT.qcow2"
;;
LXC)
cp -a $BASE $OUT
cp -a --sparse=always $BASE $OUT
libexec/config-bootstrap-fixup
on-target -u root bash < target-bin/bootstrap-fixup
;;

Loading…
Cancel
Save