~brightbox/brightbox/brightbox-builder

« back to all changes in this revision

Viewing changes to scripts/build/lb_kvm_hdd

  • Committer: Neil Wilson
  • Date: 2012-05-01 06:50:47 UTC
  • Revision ID: git-v1:cad014d86410a6baaac2fbbcbb3870f62042f00d
Switch to Qcow2 as compression format

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
fi
421
421
 
422
422
TARGET_NAME="${LB_DISTRIBUTION}-${LB_ARCHITECTURES}-$$"
423
 
mv chroot/binary.img ./${TARGET_NAME}
424
423
 
425
 
Echo_message "Compressing image"
426
 
gzip ${GZIP_OPTIONS} ${TARGET_NAME}
 
424
Echo_message "Converting image to Qcow2 format"
 
425
qemu-img convert -p -O qcow2 -c chroot/binary.img ${TARGET_NAME} && rm -f chroot/binary.img
427
426
 
428
427
# Saving cache
429
428
Save_cache cache/packages_binary