18325: The nvidia apt repo link generation information at
authorWard Vandewege <ward@curii.com>
Mon, 20 Dec 2021 15:22:54 +0000 (10:22 -0500)
committerWard Vandewege <ward@curii.com>
Mon, 20 Dec 2021 15:22:54 +0000 (10:22 -0500)
       https://nvidia.github.io/libnvidia-container/ is wrong for
       Ubuntu, the dot needs to be stripped from the version number.

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

tools/compute-images/scripts/base.sh

index e70eccd0c228e5351123a82e050f4ab7261dcd90..2ad9818d07cc905807d5c3df1fec18ae4c528ae2 100644 (file)
@@ -151,7 +151,7 @@ $SUDO mv /tmp/etc-cloud-cloud.cfg.d-07_compute_arvados_dispatch_cloud.cfg /etc/c
 $SUDO chown root:root /etc/cloud/cloud.cfg.d/07_compute_arvados_dispatch_cloud.cfg
 
 if [ "$NVIDIA_GPU_SUPPORT" == "1" ]; then
-  DIST=$(. /etc/os-release; echo $ID$VERSION_ID)
+  DIST=$(. /etc/os-release; echo $ID$VERSION_ID | tr -d '.')
   # We need a kernel and matching headers
   $SUDO apt-get -y install linux-image-cloud-amd64 linux-headers-cloud-amd64