Skip to content

Commit bc4bc68

Browse files
committed
Shell format fixed
Signed-off-by: sharvil10 <sharvil.shah@intel.com>
1 parent f21296f commit bc4bc68

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

enterprise/redhat/openshift-ai/gaudi/docker/install_efa.sh

+22-22
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,28 @@ pushd "$tmp_dir"/aws-efa-installer
2727
# shellcheck disable=SC1091
2828
. /etc/os-release
2929
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+
;;
5252
esac
5353
eval "$RUN_EFA_INSTALLER"
5454
popd

0 commit comments

Comments
 (0)