From 5e5ce9e7546bad5384b8f15a47f094526a333dd0 Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Wed, 21 Feb 2024 15:25:11 -0500 Subject: [PATCH] fix: make volid shorter to fit within 32 char --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f49c8cb7..1741532b 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ WEB_UI = false _BASE_DIR = $(shell pwd) _IMAGE_REPO_ESCAPED = $(subst /,\/,$(IMAGE_REPO)) _IMAGE_REPO_DOUBLE_ESCAPED = $(subst \,\\\,$(_IMAGE_REPO_ESCAPED)) +_VOLID = $(IMAGE_NAME:-%=)-$(ARCH)-$(IMAGE_TAG) ifeq ($(VARIANT),'Server') _LORAX_ARGS = --macboot --noupgrade @@ -48,7 +49,7 @@ lorax_templates/%.tmpl: lorax_templates/%.tmpl.in boot.iso: lorax_templates/set_installer.tmpl lorax_templates/configure_upgrades.tmpl rm -Rf $(_BASE_DIR)/results lorax -p $(IMAGE_NAME) -v $(VERSION) -r $(VERSION) -t $(VARIANT) \ - --isfinal --buildarch=$(ARCH) --volid=$(IMAGE_NAME)-$(ARCH)-$(IMAGE_TAG) \ + --isfinal --buildarch=$(ARCH) --volid=$(_VOLID) \ $(_LORAX_ARGS) \ --repo /etc/yum.repos.d/fedora.repo \ --repo /etc/yum.repos.d/fedora-updates.repo \