diff --git a/build.sh b/build.sh index 350da18..592602a 100644 --- a/build.sh +++ b/build.sh @@ -11,6 +11,15 @@ echo "---" # remove the default firefox (from fedora) in favor of the flatpak rpm-ostree override remove firefox firefox-langpacks +repos=$(yq '.extrarepos[]' < /usr/etc/ublue-recipe.yml) +if [[ -n "$repos" ]]; then + echo "-- Adding repos defined in recipe.yml --" + for repo in $(echo -e "$repos"); do \ + wget $repo -P /etc/yum.repos.d/; \ + done + echo "---" +fi + echo "-- Installing RPMs defined in recipe.yml --" rpm_packages=$(yq '.rpms[]' < /usr/etc/ublue-recipe.yml) for pkg in $(echo -e "$rpm_packages"); do \ diff --git a/recipe.yml b/recipe.yml index 0ae7e08..2fa5135 100644 --- a/recipe.yml +++ b/recipe.yml @@ -22,6 +22,12 @@ description: A starting point for further customization of uBlue images. Make yo scripts: # - example.sh +# a list of urls of .repo files that should be added to your system +# this is the proper way to add copr repos to your image +extrarepos: + # example: + # - https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-37/atim-starship-fedora-37.repo + # These rpms will be installed from the fedora repository # using rpm-ostree and will be preinstalled in the final image rpms: