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

replace in os-release

This commit is contained in:
Jason N. 2024-03-07 15:06:25 -05:00
parent 6c8aeff970
commit 7f720d7854

View file

@ -145,8 +145,8 @@ repos/%.repo: /etc/yum.repos.d/%.repo
boot.iso: $(_LORAX_TEMPLATES) $(_REPO_FILES) boot.iso: $(_LORAX_TEMPLATES) $(_REPO_FILES)
rm -Rf $(_BASE_DIR)/results || true rm -Rf $(_BASE_DIR)/results || true
mv /etc/rpm/macros.image-language-conf /etc/rpm/macros.image-language-conf.orig || true mv /etc/rpm/macros.image-language-conf /etc/rpm/macros.image-language-conf.orig || true
cp /etc/dnf/dnf.conf /etc/dnf/dnf.conf.orig || true cp /etc/os-release /etc/os-release.orig || true
echo "module_platform_id=$(_PLATFORM_ID)" >> /etc/dnf/dnf.conf sed -i 's/PLATFORM_ID=.*/PLATFORM_ID="$(_PLATFORM_ID)"/" /etc/os-release
# Download the secure boot key # Download the secure boot key
if [ -n "$(SECURE_BOOT_KEY_URL)" ]; \ if [ -n "$(SECURE_BOOT_KEY_URL)" ]; \
@ -164,8 +164,8 @@ boot.iso: $(_LORAX_TEMPLATES) $(_REPO_FILES)
$(foreach var,$(_TEMPLATE_VARS),--add-template-var "$(shell echo $(var) | tr '[:upper:]' '[:lower:]')=$($(var))") \ $(foreach var,$(_TEMPLATE_VARS),--add-template-var "$(shell echo $(var) | tr '[:upper:]' '[:lower:]')=$($(var))") \
$(_BASE_DIR)/results/ $(_BASE_DIR)/results/
mv $(_BASE_DIR)/results/images/boot.iso $(_BASE_DIR)/ mv $(_BASE_DIR)/results/images/boot.iso $(_BASE_DIR)/
mv /etc/rpm/macros.image-language-conf.orig /etc/rpm/macros.image-language-conf || true mv -f /etc/rpm/macros.image-language-conf.orig /etc/rpm/macros.image-language-conf || true
mv -f /etc/dnf/dnf.conf.orig /etc/dnf/dnf.conf || true mv -f /etc/os-release.orig /etc/os-release || true
# Step 4: Download container image # Step 4: Download container image
container/$(IMAGE_NAME)-$(IMAGE_TAG): container/$(IMAGE_NAME)-$(IMAGE_TAG):