feat: switch back to rpm yafti now that it uses pydantic 2 (#323)

This commit is contained in:
fiftydinar 2024-08-21 16:00:56 +02:00 committed by GitHub
commit 477ba2bbfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,11 +17,14 @@ FIRSTBOOT_SCRIPT="${FIRSTBOOT_DATA}/launcher/login-profile.sh"
PROFILED_DIR="/etc/profile.d"
FIRSTBOOT_LINK="${PROFILED_DIR}/ublue-firstboot.sh"
echo "Installing python3-pip and libadwaita"
rpm-ostree install python3-pip libadwaita
# Fetch ublue COPR
REPO="https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-${OS_VERSION}/ublue-os-staging-fedora-${OS_VERSION}.repo"
wget "${REPO//[$'\t\r\n ']}" -P "/etc/yum.repos.d/"
echo "Installing and enabling yafti"
pip install --prefix=/usr yafti==0.9.0
rpm-ostree install yafti
# Remove ublue COPR
rm /etc/yum.repos.d/ublue-os-staging-fedora-*.repo
# If the profile.d directory doesn't exist, create it
if [ ! -d "${PROFILED_DIR}" ]; then