[autotest-client-tests][PATCH 1/3] UBUNTU: SAUCE: ubuntu_nvidia_server_driver: nvidia-fs: Use updated key for CUDA repo

dann frazier dann.frazier at canonical.com
Tue Jun 21 21:21:51 UTC 2022


Nvidia have rotated the key used to sign their CUDA apt repositories:
  https://forums.developer.nvidia.com/t/notice-cuda-linux-repository-key-rotation/212772

Signed-off-by: dann frazier <dann.frazier at canonical.com>
---
 .../nvidia-fs/03-inside-vm-install-drivers.sh            | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/ubuntu_nvidia_server_driver/nvidia-fs/03-inside-vm-install-drivers.sh b/ubuntu_nvidia_server_driver/nvidia-fs/03-inside-vm-install-drivers.sh
index 9d12ddc6..94a61474 100755
--- a/ubuntu_nvidia_server_driver/nvidia-fs/03-inside-vm-install-drivers.sh
+++ b/ubuntu_nvidia_server_driver/nvidia-fs/03-inside-vm-install-drivers.sh
@@ -33,7 +33,14 @@ apt install -y mlnx-ofed-all mlnx-nvme-dkms mlnx-nfsrdma-dkms
 
 # Install nvidia-fs module
 cuda_os="ubuntu$(echo "$LXD_OS_VER" | tr -d .)"
-apt-key adv --fetch-keys "https://developer.download.nvidia.com/compute/cuda/repos/${cuda_os}/x86_64/7fa2af80.pub"
+
+# keyring install instructions from:
+#  https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html
+cuda_keyring_deb="$(mktemp)"
+wget "https://developer.download.nvidia.com/compute/cuda/repos/$cuda_os/x86_64/cuda-keyring_1.0-1_all.deb" -O "$cuda_keyring_deb"
+sudo dpkg -i "$cuda_keyring_deb"
+rm -f "$cuda_keyring_deb"
+
 add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/${cuda_os}/x86_64/ /"
 apt install -y nvidia-fs-dkms
 add-apt-repository -r "deb https://developer.download.nvidia.com/compute/cuda/repos/${cuda_os}/x86_64/ /"
-- 
2.36.1




More information about the kernel-team mailing list