File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
terraform-aws-github-runner/modules/runners-instances/templates Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ ${install_config_runner}
2424echo Checking if nvidia install required ${nvidia_driver_install}
2525%{ if nvidia_driver_install ~ }
2626set +e
27- os_id=$( . /etc/os-release; echo $ID$VERSION_ID )
27+ os_id=$( awk -F= ' /^ID=/{print $2}' /etc/os-release)
28+ os_version=$( awk -F= ' /^VERSION=/{print $2}' /etc/os-release)
2829if ! [[ " $os_id " =~ ^amzn.* ]]; then
2930 echo Installing Development Tools
3031 sudo yum groupinstall -y " Development Tools"
@@ -37,7 +38,7 @@ sudo rm -fv /tmp/nvidia_driver
3738if ! [[ " $os_id " =~ ^amzn.* ]]; then
3839 echo Installing nvidia-docker tools
3940 sudo yum install -y yum-utils
40- sudo yum-config-manager --add-repo https://nvidia.github.io/nvidia-docker/${os_id} /nvidia-docker.repo
41+ sudo yum-config-manager --add-repo https://nvidia.github.io/nvidia-docker/${os_id}${os_version} /nvidia-docker.repo
4142 sudo yum install -y nvidia-docker2
4243 sudo systemctl restart docker
4344fi
You can’t perform that action at this time.
0 commit comments