Skip to content

Commit

Permalink
correct and cleanup nvidia addons repo enable/disable
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman committed Nov 25, 2024
1 parent c5f2fd3 commit 7a16bb8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nvidia-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 7a16bb8

Please sign in to comment.