diff --git a/packages/nvidia-container.repo b/packages/nvidia-container.repo index 5bfa14f1..94e67dc0 100644 --- a/packages/nvidia-container.repo +++ b/packages/nvidia-container.repo @@ -21,7 +21,7 @@ [nvidia-container-toolkit] name=nvidia-container-toolkit baseurl=https://nvidia.github.io/libnvidia-container/stable/rpm/$basearch -enabled=1 +enabled=0 repo_gpgcheck=1 gpgcheck=0 gpgkey=https://nvidia.github.io/libnvidia-container/gpgkey diff --git a/scripts/install-nvidia.sh b/scripts/install-nvidia.sh index 8105eb39..0d5c3245 100755 --- a/scripts/install-nvidia.sh +++ b/scripts/install-nvidia.sh @@ -258,7 +258,12 @@ sh "$run_path" --silent --no-kernel-module --no-nouveau-check \ # bundle was one source, not the only one: NVIDIA publishes the toolkit itself, # from a path with no distribution version in it, and its dependencies are base # OS libraries Hummingbird already has. See packages/nvidia-container.repo. -"$DNF" -y install nvidia-container-toolkit +# +# The repository ships enabled=0 so only these flavors expose it, and it is +# switched on for this transaction alone (--enablerepo), the same narrow window +# #133 gives utah-packages.repo. A non-NVIDIA image therefore lists only +# Hummingbird in `dnf repolist`, which is the acceptance for #169. +"$DNF" -y install --enablerepo=nvidia-container-toolkit nvidia-container-toolkit # /usr/lib/utah is created by install-ogc-kernel.sh, but that only runs on the # gaming flavors, so on plain nvidia nothing has made it yet.