Commit bc4bc68 1 parent f21296f commit bc4bc68 Copy full SHA for bc4bc68
File tree 1 file changed +22
-22
lines changed
enterprise/redhat/openshift-ai/gaudi/docker
1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -27,28 +27,28 @@ pushd "$tmp_dir"/aws-efa-installer
27
27
# shellcheck disable=SC1091
28
28
. /etc/os-release
29
29
case $ID in
30
- rhel)
31
- # we cannot install dkms packages on RHEL images due to OCP rules
32
- find RPMS/ -name ' dkms*.rpm' -exec rm -f {} \;
33
- find RPMS/ -name ' efa-*.rpm' -exec rm -f {} \;
34
- case $VERSION_ID in
35
- 8* )
36
- dnf install -y RPMS/ROCKYLINUX8/x86_64/rdma-core/* .rpm
37
- ;;
38
- 9* )
39
- dnf install -y RPMS/ROCKYLINUX9/x86_64/rdma-core/* .rpm
40
- ;;
41
- * )
42
- echo " Unsupported RHEL version: $VERSION_ID "
43
- exit 1
44
- ;;
45
- esac
46
- RUN_EFA_INSTALLER=" echo 'Skipping EFA installer on RHEL'"
47
- ;;
48
- tencentos)
49
- dnf install -y RPMS/ROCKYLINUX8/x86_64/rdma-core/* .rpm
50
- patch -f -p1 -i /tmp/tencentos_efa_patch.txt --reject-file=tencentos_efa_patch.rej --no-backup-if-mismatch
51
- ;;
30
+ rhel)
31
+ # we cannot install dkms packages on RHEL images due to OCP rules
32
+ find RPMS/ -name ' dkms*.rpm' -exec rm -f {} \;
33
+ find RPMS/ -name ' efa-*.rpm' -exec rm -f {} \;
34
+ case $VERSION_ID in
35
+ 8* )
36
+ dnf install -y RPMS/ROCKYLINUX8/x86_64/rdma-core/* .rpm
37
+ ;;
38
+ 9* )
39
+ dnf install -y RPMS/ROCKYLINUX9/x86_64/rdma-core/* .rpm
40
+ ;;
41
+ * )
42
+ echo " Unsupported RHEL version: $VERSION_ID "
43
+ exit 1
44
+ ;;
45
+ esac
46
+ RUN_EFA_INSTALLER=" echo 'Skipping EFA installer on RHEL'"
47
+ ;;
48
+ tencentos)
49
+ dnf install -y RPMS/ROCKYLINUX8/x86_64/rdma-core/* .rpm
50
+ patch -f -p1 -i /tmp/tencentos_efa_patch.txt --reject-file=tencentos_efa_patch.rej --no-backup-if-mismatch
51
+ ;;
52
52
esac
53
53
eval " $RUN_EFA_INSTALLER "
54
54
popd
You can’t perform that action at this time.
0 commit comments