build-vm, image.in: Fix parameter VM_SAVE_TAR -> VM_SAVE_TARBALL

The code is given in accordance with the documentation
See-also: commit 2987fa8f61
This commit is contained in:
Anton Midyukov 2021-05-20 20:22:07 +07:00
parent efec47fa42
commit 366f6a6ba5
2 changed files with 5 additions and 6 deletions

View File

@ -30,11 +30,10 @@ VM_XZ_COMMAND ?= xz -T0
RECOVERY_LINE ?= Press ENTER to start
# tarball save
#SAVE_TARBALL := convert-image/tar
ifdef VM_SAVE_TAR
ifdef VM_SAVE_TARBALL
ifeq (,$(filter-out img img.xz qcow2 qcow2c vdi vmdk vhd,$(IMAGE_TYPE)))
ifeq (,$(filter-out tar tar.gz tar.xz,$(VM_SAVE_TAR)))
SAVE_TARBALL := convert-image/$(VM_SAVE_TAR)
ifeq (,$(filter-out tar tar.gz tar.xz,$(VM_SAVE_TARBALL)))
SAVE_TARBALL := convert-image/$(VM_SAVE_TARBALL)
endif
endif
endif

View File

@ -95,8 +95,8 @@ postprocess: | $(addprefix postprocess-,$(sort $(POSTPROCESS_TARGETS)))
echo "** error: $(IMAGE_OUTPATH) missing" >&2; \
exit 1; \
fi; \
if [ -n "$(VM_SAVE_TAR)" ]; then \
echo "** tarball saved: $(IMAGE_OUTPATH)/$(IMAGE_OUTNAME).$(VM_SAVE_TAR)" >&2; \
if [ -n "$(VM_SAVE_TARBALL)" ]; then \
echo "** tarball saved: $(IMAGE_OUTPATH)/$(IMAGE_OUTNAME).$(VM_SAVE_TARBALL)" >&2; \
fi; \
echo "** image: $(IMAGE_OUTPATH) [$$OUTSIZE]" >&2 && \
echo "IMAGE_OUTPATH = $(IMAGE_OUTPATH)" && \