From 7a16bb8a4385adaad8c89bc8976be2cd150c272f Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Sun, 24 Nov 2024 23:20:29 -0600 Subject: [PATCH] correct and cleanup nvidia addons repo enable/disable --- nvidia-install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nvidia-install.sh b/nvidia-install.sh index ef4f5dd..d177218 100755 --- a/nvidia-install.sh +++ b/nvidia-install.sh @@ -12,10 +12,8 @@ sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/fedora-cisco-openh264.repo ## nvidia install steps rpm-ostree install /tmp/akmods-rpms/ublue-os/ublue-os-nvidia-addons-*.rpm -# enables nvidia repos provided by ublue-os-nvidia-addons +# enable repo provided by ublue-os-nvidia-addons sed -i '0,/enabled=0/{s/enabled=0/enabled=1/}' /etc/yum.repos.d/nvidia-container-toolkit.repo -#NOTE: nvidia drivers are already provided by negativo17-fedora-multimedia.repo, no need to enable -#sed -i '0,/enabled=0/{s/enabled=0/enabled=1/}' /etc/yum.repos.d/negativo17-fedora-nvidia.repo # Enable staging for supergfxctl if repo file exists if [[ -f /etc/yum.repos.d/_copr_ublue-os-staging.repo ]]; then @@ -50,6 +48,9 @@ rpm-ostree install \ ## nvidia post-install steps +# disable repo provided by ublue-os-nvidia-addons +sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/nvidia-container-toolkit.repo + # Disable staging sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_ublue-os-staging.repo