From f664008e4e5d78c6266b65e7195779ff9a42aaab Mon Sep 17 00:00:00 2001 From: qoijjj <129108030+qoijjj@users.noreply.github.com> Date: Wed, 31 Jul 2024 21:49:54 -0700 Subject: [PATCH] feat: switch to rpm yafti --- modules/yafti/yafti.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/yafti/yafti.sh b/modules/yafti/yafti.sh index 992fb1e..82747ba 100644 --- a/modules/yafti/yafti.sh +++ b/modules/yafti/yafti.sh @@ -17,11 +17,14 @@ FIRSTBOOT_SCRIPT="${FIRSTBOOT_DATA}/launcher/login-profile.sh" PROFILED_DIR="/usr/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.8.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