Merge ~dannf/+git/maas-preseeds:oot-driver-updates into ~ce-hyperscale/+git/maas-preseeds:main

Proposed by dann frazier
Status: Merged
Merged at revision: 05bdd105e694f97d9fc7ba6c19a3bdc421cbc0ba
Proposed branch: ~dannf/+git/maas-preseeds:oot-driver-updates
Merge into: ~ce-hyperscale/+git/maas-preseeds:main
Diff against target: 44 lines (+13/-6)
1 file modified
late.sh (+13/-6)
Reviewer Review Type Date Requested Status
Hon Ming Hui Approve
Review via email: mp+444311@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Hon Ming Hui (hm-hui) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/late.sh b/late.sh
index 29cfe7e..0b260b3 100755
--- a/late.sh
+++ b/late.sh
@@ -4,18 +4,25 @@ set -e
4set -x4set -x
55
6export DEBIAN_FRONTEND=noninteractive6export DEBIAN_FRONTEND=noninteractive
7NVIDIA_DRIVER_VERSION=470-server7UBUNTU_VER="$(lsb_release -rs)"
8case $UBUNTU_VER in
9 18.04|20.04)
10 NVIDIA_DRIVER_VERSION=470-server
11 ;;
12 *)
13 NVIDIA_DRIVER_VERSION=525-server
14 ;;
15esac
16
817
9install_mellanox_ofed() {18install_mellanox_ofed() {
10 local MLNX_REPO="https://linux.mellanox.com/public/repo/mlnx_ofed"19 local MLNX_REPO="https://linux.mellanox.com/public/repo/mlnx_ofed"
11 local ubuntu_ver20 case $UBUNTU_VER in
12 ubuntu_ver="$(lsb_release -rs)"
13 case $ubuntu_ver in
14 20.04)21 20.04)
15 MELLANOX_OFED_VERSION=5.4-3.5.8.022 MELLANOX_OFED_VERSION=5.4-3.5.8.0
16 ;;23 ;;
17 18.04)24 18.04)
18 MELLANOX_OFED_VERSION=4.9-2.2.4.025 MELLANOX_OFED_VERSION=4.9-4.1.7.0
19 ;;26 ;;
20 *)27 *)
21 # nvidia seems to make future DGX MOFED-less, and DGX OS starting28 # nvidia seems to make future DGX MOFED-less, and DGX OS starting
@@ -23,7 +30,7 @@ install_mellanox_ofed() {
23 # performance characteristics for jammy and above.30 # performance characteristics for jammy and above.
24 return 031 return 0
25 esac32 esac
26 mlnx_url="${MLNX_REPO}/${MELLANOX_OFED_VERSION}/ubuntu${ubuntu_ver}/mellanox_mlnx_ofed.list"33 mlnx_url="${MLNX_REPO}/${MELLANOX_OFED_VERSION}/ubuntu${UBUNTU_VER}/mellanox_mlnx_ofed.list"
2734
28 wget -O - https://www.mellanox.com/downloads/ofed/RPM-GPG-KEY-Mellanox | \35 wget -O - https://www.mellanox.com/downloads/ofed/RPM-GPG-KEY-Mellanox | \
29 apt-key add -36 apt-key add -

Subscribers

People subscribed via source and target branches

to all changes: