1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

feat: Allow building from an oci-archive tarball

This commit is contained in:
Gerald Pinder 2024-06-10 21:01:11 -04:00
parent e0e4de8f9a
commit d4917f64ea
3 changed files with 12 additions and 2 deletions

View file

@ -86,6 +86,12 @@ _LORAX_TEMPLATES += $(call get_templates,secureboot)
_TEMPLATE_VARS += ENROLLMENT_PASSWORD
endif
ifneq ($(IMAGE_TAR),)
_IMAGE_TARGET := container/$(IMAGE_NAME)-$(IMAGE_TAG)-tar
else
_IMAGE_TARGET := container/$(IMAGE_NAME)-$(IMAGE_TAG)
endif
_SUBDIRS := container external flatpak_refs lorax_templates repos xorriso test
# Create checksum
@ -94,7 +100,7 @@ $(ISO_NAME)-CHECKSUM: $(ISO_NAME)
cd $(dir $(ISO_NAME)) && sha256sum $(notdir $(ISO_NAME)) > $(notdir $(ISO_NAME))-CHECKSUM
# Build end ISO
$(ISO_NAME): results/images/boot.iso container/$(IMAGE_NAME)-$(IMAGE_TAG) xorriso/input.txt
$(ISO_NAME): results/images/boot.iso $(_IMAGE_TARGET) xorriso/input.txt
$(if $(wildcard $(dir $(ISO_NAME))),,mkdir -p $(dir $(ISO_NAME)); chmod ugo=rwX $(dir $(ISO_NAME)))
xorriso -dialog on < xorriso/input.txt
implantisomd5 $(ISO_NAME)