mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
set repo and gpg key
This commit is contained in:
parent
27288fa154
commit
e46369cb0e
2 changed files with 8 additions and 1 deletions
5
Makefile
5
Makefile
|
|
@ -24,7 +24,10 @@ _VOLID = $(firstword $(subst -, ,$(IMAGE_NAME)))-$(ARCH)-$(IMAGE_TAG)
|
|||
_REPO_FILES = $(subst /etc/yum.repos.d,repos,$(REPOS))
|
||||
_LORAX_TEMPLATES = $(subst .in,,$(shell ls lorax_templates/*.tmpl.in))
|
||||
_FLATPAK_TEMPLATES = $(_BASE_DIR)/external/fedora-lorax-templates/ostree-based-installer/lorax-embed-flatpaks.tmpl
|
||||
_TEMPLATE_VARS = FLATPAK_REMOTE_NAME FLATPAK_REMOTE_URL FLATPAK_REMOTE_REFS
|
||||
_FLATPAK_REPO_URL = $(shell curl -L $(FLATPAK_REMOTE_URL) | grep -i '^URL=' | cut -d= -f2)
|
||||
_FLATPAK_REPO_GPG = $(shell curl -L $(FLATPAK_REMOTE_URL) | grep -i '^GPGKey=' | cut -d= -f2)
|
||||
_TEMPLATE_VARS = FLATPAK_REMOTE_NAME FLATPAK_REMOTE_URL FLATPAK_REMOTE_REFS _FLATPAK_REPO_URL _FLATPAK_REPO_GPG
|
||||
|
||||
|
||||
ifeq ($(VARIANT),Server)
|
||||
_LORAX_ARGS = --macboot --noupgrade
|
||||
|
|
|
|||
4
lorax_templates/set_flatpak_repo.tmpl.in
Normal file
4
lorax_templates/set_flatpak_repo.tmpl.in
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
replace 'flatpak_manager.add_remote("fedora", "oci+https://registry.fedoraproject.org")', 'flatpak_manager.add_remote("${flatpak_remote_name}", "${_FLATPAK_REPO_URL}")' /usr/lib64/python3.12/site-packages/pyanaconda/modules/payloads/payload/rpm_ostree/flatpak_installation.py
|
||||
append usr/share/anaconda/interactive-defaults.ks "%post --erroronfail"
|
||||
append usr/share/anaconda/interactive-defaults.ks "cat ${_FLATPAK_REPO_GPG} | base64 -d > /ostree/deploy/default/var/lib/flatpak/repo/flathub.trustedkeys.gpg"
|
||||
append usr/share/anaconda/interactive-defaults.ks "%end"
|
||||
Loading…
Add table
Add a link
Reference in a new issue