Skip to content

Commit

Permalink
tests/gpu-container: install recommended driver
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Dec 17, 2023
1 parent 1e2283a commit 9ae913b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/gpu-container
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ if mokutil --sb-state | grep -Fx "SecureBoot enabled"; then
fi

# Install dependencies
INSTALL_RECOMMENDS=yes install_deps jq nvidia-utils-525 nvidia-driver-525
install_deps jq ubuntu-drivers-common
RECOMMENDED_DRIVER="$(ubuntu-drivers devices 2>/dev/null | awk '/nvidia-driver-.*recommended$/ {print $3}')"
INSTALL_RECOMMENDS=yes install_deps "${RECOMMENDED_DRIVER}"

# Install LXD
install_lxd
Expand Down

0 comments on commit 9ae913b

Please sign in to comment.