Generate a VHD image

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-06-13 12:18:52 +01:00
parent acf47bfa80
commit ee0e3beb39
3 changed files with 8 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ ifeq "$(EFI)" "1"
endif
PART_ROOT = /dev/mapper/$(patsubst /dev/%,%,$(DEVICE))p3
IMAGE_FILE = /install/images/$(SNAME)-$(VERSION).2gb-ext4.$(BUILD_ARCH)-full-core$(CORE).img.xz
IMAGE_FILE = /install/images/$(SNAME)-$(VERSION).2gb-ext4.$(BUILD_ARCH)-full-core$(CORE)
FSTAB_FMT = UUID=%s %-8s %-4s %-10s %d %d\n
@@ -255,5 +255,9 @@ ifeq "$(BUILD_ARCH)" "armv5tel"
endif
# Compress Image
xz $(XZ_OPT) < $(IMG) > $(IMAGE_FILE)
xz $(XZ_OPT) < $(IMG) > $(IMAGE_FILE).img.xz
# Make VHD image
qemu-img convert -O vpc -o subformat=fixed,force_size $(IMG) $(IMAGE_FILE).vhd
rm -rf $(IMG) $(MNThdd)