From 38adaacdb67408113aa40f40a9b44435a2b5d19f Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:53:52 -0500 Subject: [PATCH] disable localization --- Makefile | 9 ++++----- lorax_templates/disable_localization.tmpl.in | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 lorax_templates/disable_localization.tmpl.in diff --git a/Makefile b/Makefile index 9c7ea2e..ea85b04 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ _IMAGE_REPO_ESCAPED = $(subst /,\/,$(IMAGE_REPO)) _IMAGE_REPO_DOUBLE_ESCAPED = $(subst \,\\\,$(_IMAGE_REPO_ESCAPED)) _VOLID = $(firstword $(subst -, ,$(IMAGE_NAME)))-$(ARCH)-$(IMAGE_TAG) _REPO_FILES = $(notdir $(REPOS)) +_LORAX_TEMPLATES = configure_upgrades.tmpl set_installer.tmpl disable_localization.tmpl ifeq ($(VARIANT),'Server') _LORAX_ARGS = --macboot --noupgrade @@ -51,15 +52,13 @@ lorax_templates/%.tmpl: lorax_templates/%.tmpl.in sed -i "s/\$$basearch/${ARCH}/g" $(_BASE_DIR)/$*.repo # Step 3: Build boot.iso using Lorax -boot.iso: lorax_templates/set_installer.tmpl lorax_templates/configure_upgrades.tmpl $(_REPO_FILES) +boot.iso: $(_LORAX_TEMPLATES) $(_REPO_FILES) rm -Rf $(_BASE_DIR)/results lorax -p $(IMAGE_NAME) -v $(VERSION) -r $(VERSION) -t $(VARIANT) \ - --isfinal --buildarch=$(ARCH) --volid=$(_VOLID) \ + --isfinal --squashfs-only --buildarch=$(ARCH) --volid=$(_VOLID) \ $(_LORAX_ARGS) \ $(foreach file,$(_REPO_FILES),--repo $(_BASE_DIR)/$(file)) \ - --add-template $(_BASE_DIR)/lorax_templates/set_installer.tmpl \ - --add-template $(_BASE_DIR)/lorax_templates/configure_upgrades.tmpl \ - -i glibc-langpack-* -i langpacks-* \ + $(foreach file,$(_LORAX_TEMPLATES),--add-template $(file)) \ $(foreach file,$(ADDITIONAL_TEMPLATES),--add-template $(file)) \ --rootfs-size 4 \ $(_BASE_DIR)/results/ diff --git a/lorax_templates/disable_localization.tmpl.in b/lorax_templates/disable_localization.tmpl.in new file mode 100644 index 0000000..6b33c60 --- /dev/null +++ b/lorax_templates/disable_localization.tmpl.in @@ -0,0 +1 @@ +replace use_geolocation #use_geolocation /etc/anaconda/anaconda.conf \ No newline at end of file