mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-07 22:03:10 +00:00
-> there's no reason to send the recipe to the client as it is only used in the build stages
23 lines
962 B
Bash
23 lines
962 B
Bash
#!/bin/bash
|
|
# remove the default firefox (from fedora) in favor of the flatpak
|
|
rpm-ostree override remove firefox firefox-langpacks
|
|
|
|
echo "-- Installing RPMs defined in recipe.yml --"
|
|
rpm_packages=$(yq '.rpms[]' < /tmp/ublue-recipe.yml)
|
|
for pkg in $(echo -e "$rpm_packages"); do \
|
|
echo "Installing: ${pkg}" && \
|
|
rpm-ostree install $pkg; \
|
|
done
|
|
echo "---"
|
|
|
|
# install yafti to install flatpaks on first boot, https://github.com/ublue-os/yafti
|
|
pip install --prefix=/usr yafti
|
|
|
|
# add a package group for yafti using the packages defined in recipe.yml
|
|
yq -i '.screens.applications.values.groups.Custom.description = "Flatpaks defined by the image maintainer"' /etc/yafti.yml
|
|
yq -i '.screens.applications.values.groups.Custom.default = true' /etc/yafti.yml
|
|
flatpaks=$(yq '.flatpaks[]' < /tmp/ublue-recipe.yml)
|
|
for pkg in $(echo -e "$flatpaks"); do \
|
|
yq -i ".screens.applications.values.groups.Custom.packages += [{\"$pkg\": \"$pkg\"}]" /etc/yafti.yml
|
|
done
|