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:
parent
6c8aeff970
commit
7f720d7854
1 changed files with 4 additions and 4 deletions
8
Makefile
8
Makefile
|
|
@ -145,8 +145,8 @@ repos/%.repo: /etc/yum.repos.d/%.repo
|
|||
boot.iso: $(_LORAX_TEMPLATES) $(_REPO_FILES)
|
||||
rm -Rf $(_BASE_DIR)/results || 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
|
||||
echo "module_platform_id=$(_PLATFORM_ID)" >> /etc/dnf/dnf.conf
|
||||
cp /etc/os-release /etc/os-release.orig || true
|
||||
sed -i 's/PLATFORM_ID=.*/PLATFORM_ID="$(_PLATFORM_ID)"/" /etc/os-release
|
||||
|
||||
# Download the secure boot key
|
||||
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))") \
|
||||
$(_BASE_DIR)/results/
|
||||
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/dnf/dnf.conf.orig /etc/dnf/dnf.conf || true
|
||||
mv -f /etc/rpm/macros.image-language-conf.orig /etc/rpm/macros.image-language-conf || true
|
||||
mv -f /etc/os-release.orig /etc/os-release || true
|
||||
|
||||
# Step 4: Download container image
|
||||
container/$(IMAGE_NAME)-$(IMAGE_TAG):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue