Skip to content

Commit

Permalink
Merge pull request #6870 from researchapps/cleanup-efa-installer-archive
Browse files Browse the repository at this point in the history
cleanup efa installer archive before install
  • Loading branch information
cPu1 authored Oct 7, 2024
2 parents 5546810 + 2079032 commit 27ba59a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/nodebootstrap/assets/scripts/efa.al2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set -o nounset
yum install -y wget
wget -q --timeout=20 https://s3-us-west-2.amazonaws.com/aws-efa-installer/aws-efa-installer-latest.tar.gz -O /tmp/aws-efa-installer.tar.gz
tar -xf /tmp/aws-efa-installer.tar.gz -C /tmp
rm -rf /tmp/aws-efa-installer.tar.gz
cd /tmp/aws-efa-installer
./efa_installer.sh -y -g
/opt/amazon/efa/bin/fi_info -p efa
1 change: 1 addition & 0 deletions pkg/nodebootstrap/assets/scripts/efa.al2023.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set -o nounset
dnf install -y wget
wget -q --timeout=20 https://s3-us-west-2.amazonaws.com/aws-efa-installer/aws-efa-installer-latest.tar.gz -O /tmp/aws-efa-installer.tar.gz
tar -xf /tmp/aws-efa-installer.tar.gz -C /tmp
rm -rf /tmp/aws-efa-installer.tar.gz
cd /tmp/aws-efa-installer
./efa_installer.sh -y -g
/opt/amazon/efa/bin/fi_info -p efa
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cloud-init-per once dnf_wget dnf install -y wget
cloud-init-per once wget_efa wget -q --timeout=20 https://s3-us-west-2.amazonaws.com/aws-efa-installer/aws-efa-installer-latest.tar.gz -O /tmp/aws-efa-installer-latest.tar.gz

cloud-init-per once tar_efa tar -xf /tmp/aws-efa-installer-latest.tar.gz -C /tmp
cloud-init-per once rm_efa_gz rm -rf /tmp/aws-efa-installer-latest.tar.gz
pushd /tmp/aws-efa-installer
cloud-init-per once install_efa ./efa_installer.sh -y -g
pop /tmp/aws-efa-installer
Expand Down
1 change: 1 addition & 0 deletions pkg/nodebootstrap/assets/scripts/efa.managed.boothook
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cloud-init-per once yum_wget yum install -y wget
cloud-init-per once wget_efa wget -q --timeout=20 https://s3-us-west-2.amazonaws.com/aws-efa-installer/aws-efa-installer-latest.tar.gz -O /tmp/aws-efa-installer-latest.tar.gz

cloud-init-per once tar_efa tar -xf /tmp/aws-efa-installer-latest.tar.gz -C /tmp
cloud-init-per once rm_efa_gz rm -rf /tmp/aws-efa-installer-latest.tar.gz
pushd /tmp/aws-efa-installer
cloud-init-per once install_efa ./efa_installer.sh -y -g
pop /tmp/aws-efa-installer
Expand Down
2 changes: 2 additions & 0 deletions pkg/nodebootstrap/managed_al2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ cloud-init-per once yum_wget yum install -y wget
cloud-init-per once wget_efa wget -q --timeout=20 https://s3-us-west-2.amazonaws.com/aws-efa-installer/aws-efa-installer-latest.tar.gz -O /tmp/aws-efa-installer-latest.tar.gz
cloud-init-per once tar_efa tar -xf /tmp/aws-efa-installer-latest.tar.gz -C /tmp
cloud-init-per once rm_efa_gz rm -rf /tmp/aws-efa-installer-latest.tar.gz
pushd /tmp/aws-efa-installer
cloud-init-per once install_efa ./efa_installer.sh -y -g
pop /tmp/aws-efa-installer
Expand Down Expand Up @@ -143,6 +144,7 @@ cloud-init-per once yum_wget yum install -y wget
cloud-init-per once wget_efa wget -q --timeout=20 https://s3-us-west-2.amazonaws.com/aws-efa-installer/aws-efa-installer-latest.tar.gz -O /tmp/aws-efa-installer-latest.tar.gz
cloud-init-per once tar_efa tar -xf /tmp/aws-efa-installer-latest.tar.gz -C /tmp
cloud-init-per once rm_efa_gz rm -rf /tmp/aws-efa-installer-latest.tar.gz
pushd /tmp/aws-efa-installer
cloud-init-per once install_efa ./efa_installer.sh -y -g
pop /tmp/aws-efa-installer
Expand Down

0 comments on commit 27ba59a

Please sign in to comment.