feat: add extra repos field to recipe (#52)
* feat: add extra repos field to recipe * fix: semicolon before "done" keyword in shell * fix: don't put repos in /usr/etc/
This commit is contained in:
9
build.sh
9
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 \
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user