Browse Source

Copy target image as a sparse file in LXC mode

This will save us from writing a lot of zeros on disk.
tags/0.2
Lunar 6 years ago
parent
commit
56bd00ea39
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      libexec/make-clean-vm

+ 1
- 1
libexec/make-clean-vm View File

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