Copy target image as a sparse file in LXC mode

This will save us from writing a lot of zeros on disk.
lxc
Lunar 10 years ago committed by Georg Koppen
parent ace5bf3e58
commit 56bd00ea39

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