vm: Add ability to build .img.xz

So we are can to build compressed img files.
This commit is contained in:
Mikhail Efremov 2021-04-27 17:24:35 +03:00 committed by Anton Midyukov
parent be353bc77d
commit 125ad24e6c
2 changed files with 4 additions and 1 deletions

View File

@ -68,6 +68,9 @@ convert-image/tar.xz:
convert-image/img: tar2fs
mv "$(VM_RAWDISK)" "$(IMAGE_OUTPATH)"
convert-image/img.xz: tar2fs
$(VM_XZ_COMMAND) < "$(VM_RAWDISK)" > "$(IMAGE_OUTPATH)"
convert-image/qcow2 convert-image/qcow2c convert-image/vmdk \
convert-image/vdi convert-image/vhd: check-qemu tar2fs
@VM_COMPRESS=; \

View File

@ -41,7 +41,7 @@ $(foreach c,$(VE_ARCHIVES), \
endif
# extensions for buld-vm
VM_EXTS := .tar .tar.gz .tar.xz .img .qcow2 .qcow2c .vdi .vmdk .vhd
VM_EXTS := .tar .tar.gz .tar.xz .img .img.xz .qcow2 .qcow2c .vdi .vmdk .vhd
VM_TAVOLGA_EXTS := .recovery.tar
ifeq (vm,$(IMAGE_CLASS))