From 90054b90907a9e403ea626e637ca367f78694cc3 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Tue, 5 Nov 2024 15:11:49 -0800 Subject: [PATCH] feat: Replace gnome-software with non-dkms version on F41 and above. (#671) Co-authored-by: Benjamin Sherman --- install.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 767527e5..28dfbab8 100755 --- a/install.sh +++ b/install.sh @@ -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 @@ -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