Skip to content

Commit

Permalink
Quick patch for v550+ drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
alansari authored and Josh5 committed Feb 29, 2024
1 parent 6cc9f56 commit c3941d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions overlay/etc/cont-init.d/60-configure_gpu_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ function install_nvidia_driver {
# Download the driver (if it does not yet exist locally)
download_driver

if (($(echo $nvidia_host_driver_version | cut -d '.' -f 1) >= 550)); then
sed -i 's/--no-multigpu//g' /etc/cont-init.d/70-configure_xorg.sh
fi

if (($(echo $nvidia_host_driver_version | cut -d '.' -f 1) > 500)); then
print_step_header "Installing NVIDIA driver v${nvidia_host_driver_version:?} to match what is running on the host"
chmod +x "${USER_HOME:?}/Downloads/NVIDIA_${nvidia_host_driver_version:?}.run"
Expand Down

0 comments on commit c3941d1

Please sign in to comment.