Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

al2gpu: Remove epel repo after installing dkms and nvidia open modules #191

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions scripts/enable-ecs-agent-gpu-support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ sudo mv $tmpfile /etc/yum.repos.d/amzn2-nvidia-tmp.repo

# only install open driver for post-kepler gpus, exclude airgapped regions
if [[ $AMI_TYPE != "al2keplergpu" && -z ${AIR_GAPPED} ]]; then
sudo yum install -y yum-plugin-versionlock \
yum-utils
sudo yum install -y yum-plugin-versionlock yum-utils
sudo amazon-linux-extras install epel -y
sudo yum install -y "kernel-devel-uname-r == $(uname -r)"

Expand Down Expand Up @@ -60,6 +59,12 @@ if [[ $AMI_TYPE != "al2keplergpu" && -z ${AIR_GAPPED} ]]; then
sudo yum remove -y kmod-nvidia-open-dkms
sudo yum-config-manager --disable cuda-rhel7.repo
sudo rm /etc/yum.repos.d/cuda-rhel7.repo
# epel was used to install dkms, now delete as it points to public http endpoints which
# can cause problems for customers using isolated subnets.
sudo yum-config-manager --disable epel
sudo rm /etc/yum.repos.d/epel.repo
sudo rm /etc/yum.repos.d/epel-testing.repo
sudo amazon-linux-extras disable epel
Copy link
Member

@fierlion fierlion Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch -- I had to go validate this myself to see that the epel topic was auto-enabled by the install.

 24  epel=latest              enabled      [ =7.11  =stable ]

It was.

sudo rm -rf /var/cache/yum
sudo yum-config-manager --enable amzn2-nvidia

Expand Down
Loading