From a2dc425b293819b566dc842791634c2801a6702c Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 16 Jan 2024 14:49:54 +0100 Subject: [nvidia-common] Try downloading installer bundle from local server first We now host a patched version of 390.xx that will compile on Kernel versions up to 6.6. --- core/modules/nvidia-common/module.build | 9 +++++++-- core/modules/nvidia-common/module.conf | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/core/modules/nvidia-common/module.build b/core/modules/nvidia-common/module.build index 806b223e..1dae11ce 100644 --- a/core/modules/nvidia-common/module.build +++ b/core/modules/nvidia-common/module.build @@ -1,10 +1,15 @@ #!/bin/bash fetch_source() { - local version + local version url mkdir -p src cde src for version in $NVIDIA_VERSIONS; do - download "${REQUIRED_URL//%VERSION%/$version}" "${version}.run" + for url in $REQUIRED_URL; do + url="${url//%VERSION%/$version}" + pinfo "Downloading '$url'" + wget -O "${version}.run" "$url" && continue 2 + done + perror "Could not download installer for $version" done } diff --git a/core/modules/nvidia-common/module.conf b/core/modules/nvidia-common/module.conf index f1327ca8..13c1a5b0 100644 --- a/core/modules/nvidia-common/module.conf +++ b/core/modules/nvidia-common/module.conf @@ -1,5 +1,10 @@ #!/bin/bash -REQUIRED_URL="http://download.nvidia.com/XFree86/Linux-x86_64/%VERSION%/NVIDIA-Linux-x86_64-%VERSION%.run" + +#First working URL will be used +REQUIRED_URL=" + http://132.230.4.17/install/mltk/NVIDIA-Linux-x86_64-%VERSION%.run + http://download.nvidia.com/XFree86/Linux-x86_64/%VERSION%/NVIDIA-Linux-x86_64-%VERSION%.run +" REQUIRED_HTML="http://download.nvidia.com/XFree86/Linux-x86_64/%VERSION%/README/supportedchips.html" REQUIRED_MODULES=" -- cgit v1.2.3-55-g7522