Skip to content

Commit

Permalink
feat: Replace gnome-software with non-dkms version on F41 and above. (#…
Browse files Browse the repository at this point in the history
…671)

Co-authored-by: Benjamin Sherman <[email protected]>
  • Loading branch information
KyleGospo and bsherman authored Nov 5, 2024
1 parent 99b6864 commit 90054b9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ if [[ "$FEDORA_MAJOR_VERSION" -ne "41" ]]; then
libvdpau
fi

# Disable DKMS support in gnome-software
if [[ "$FEDORA_MAJOR_VERSION" -ge "41" && "$IMAGE_NAME" == "silverblue" ]]; then
rpm-ostree override remove \
gnome-software-rpm-ostree
rpm-ostree override replace \
--experimental \
--from repo=copr:copr.fedorainfracloud.org:ublue-os:staging \
gnome-software
fi

# run common packages script
/ctx/packages.sh

Expand All @@ -72,10 +82,6 @@ CSFG=/usr/lib/systemd/system-generators/coreos-sulogin-force-generator
curl -sSLo ${CSFG} https://raw.githubusercontent.com/coreos/fedora-coreos-config/refs/heads/stable/overlay.d/05core/usr/lib/systemd/system-generators/coreos-sulogin-force-generator
chmod +x ${CSFG}

# prevent gnome software from warning about dkms secureboot as these warnings
# would duplicate warnings provided by ublue already. we don't want confusion
rm -f /usr/libexec/gnome-software-dkms-helper

if [[ "${KERNEL_VERSION}" == "${QUALIFIED_KERNEL}" ]]; then
/ctx/initramfs.sh
fi

0 comments on commit 90054b9

Please sign in to comment.