-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
169 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "external/fedora-lorax-templates"] | ||
path = external/fedora-lorax-templates | ||
url = https://pagure.io/fedora-lorax-templates.git | ||
branch = f39 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<%page args="_flatpak_repo_gpg"/> | ||
|
||
if [[ -d /ostree/deploy/default/var/lib/flatpak/repo ]] | ||
then | ||
echo ${_flatpak_repo_gpg} | base64 -d > /ostree/deploy/default/var/lib/flatpak/repo/flathub.trustedkeys.gpg | ||
elif [[ -d /var/lib/flatpak/repo ]] | ||
then | ||
echo ${_flatpak_repo_gpg} | base64 -d > /var/lib/flatpak/repo/flathub.trustedkeys.gpg | ||
else | ||
echo "Could not find Flatpaks repo" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<%page args="flatpak_remote_name, _flatpak_repo_url"/> | ||
|
||
replace "flatpak_manager\.add_remote\(\".*\", \".*\"\)" "flatpak_manager.add_remote(\"${flatpak_remote_name}\", \"${_flatpak_repo_url}\")" /usr/lib64/python*/site-packages/pyanaconda/modules/payloads/payload/rpm_ostree/flatpak_installation.py | ||
replace "flatpak_manager\.replace_installed_refs_remote\(\".*\"\)" "flatpak_manager.replace_installed_refs_remote(\"${flatpak_remote_name}\")" /usr/lib64/python*/site-packages/pyanaconda/modules/payloads/payload/rpm_ostree/flatpak_installation.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
add_line=$(grep flatpak_manager.add_remote /mnt/install/usr/lib64/python*/site-packages/pyanaconda/modules/payloads/payload/rpm_ostree/flatpak_installation.py) | ||
|
||
add_line_repo=$(echo ${add_line} | grep ${FLATPAK_REMOTE_NAME}) | ||
add_line_url=$(echo ${add_line} | grep ${_FLATPAK_REPO_URL}) | ||
|
||
result=0 | ||
if [ -z "${add_line_repo}" ] | ||
then | ||
echo "Repo name not updated on add_remote line" | ||
result=1 | ||
else | ||
echo "Repo name found on add_remote line" | ||
fi | ||
|
||
if [ -z "${add_line_url}" ] | ||
then | ||
echo "Repo url not updated on add_remote line" | ||
result=1 | ||
else | ||
echo "Repo url found on add_remote line" | ||
fi | ||
|
||
replace_line=$(grep flatpak_manager.replace_installed_refs_remote /mnt/install/usr/lib64/python*/site-packages/pyanaconda/modules/payloads/payload/rpm_ostree/flatpak_installation.py) | ||
|
||
replace_line_repo=$(echo ${replace_line} | grep ${FLATPAK_REMOTE_NAME}) | ||
|
||
if [ -z "${replace_line_repo}" ] | ||
then | ||
echo "Repo name not updated on replace_installed_refs line" | ||
result=1 | ||
else | ||
echo "Repo name found on replace_installed_refs line" | ||
fi | ||
|
||
exit ${result} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env -S ansible-playbook -i ./ansible_inventory | ||
--- | ||
- name: Test for flatpaks | ||
hosts: vm | ||
gather_facts: no | ||
|
||
tasks: | ||
- name: Test updating flatpak packages | ||
ansible.builtin.command: | ||
cmd: /usr/bin/flatpak update -y |