File tree Expand file tree Collapse file tree 9 files changed +54
-8
lines changed Expand file tree Collapse file tree 9 files changed +54
-8
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash -lv
1+ #! /bin/bash -l
2+
3+ if [ ${DIB_DEBUG_TRACE:- 0} -gt 0 ]; then
4+ set -x
5+ fi
6+
7+ set -euo pipefail
28
39case " $DISTRO_NAME " in
410 centos* )
Original file line number Diff line number Diff line change 1- #! /bin/bash -lv
1+ #! /bin/bash -l
2+
3+ if [ ${DIB_DEBUG_TRACE:- 0} -gt 0 ]; then
4+ set -x
5+ fi
6+
7+ set -euo pipefail
28
39if [[ ${DISTRO_NAME} == centos && -n ${DIB_CENTOS_KMODS_PKGLIST} ]]; then
410 dnf install -y ${DIB_CENTOS_KMODS_PKGLIST}
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ set -euo pipefail
4+
35if [ ! -d /etc/sysconfig/network-scripts ]
46then
57 return -1
68fi
79
8- # If there is no existing network configuration for the given device,
10+ # If there is no existing network configuration for the given device,
911# create a catch-all DHCP configuration for this network interface.
1012if [ ! -e /etc/sysconfig/network-scripts/ifcfg-$DHCP_ON_DEV ]
1113then
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ set -euo pipefail
4+
35# Purge the cloud image default network configuration
46if [ " $DHCP_ON_DEV " != " eth0" ]
57then
Original file line number Diff line number Diff line change 1- #! /bin/bash -lv
1+ #! /bin/bash -l
2+
3+ if [ ${DIB_DEBUG_TRACE:- 0} -gt 0 ]; then
4+ set -x
5+ fi
6+
7+ set -euo pipefail
28
39if [[ ${DISTRO_NAME} =~ (centos| rhel) && -n ${DIB_ELREPO_PKGLIST} ]]; then
410 dnf install -y " ${DIB_ELREPO_PKGLIST} "
Original file line number Diff line number Diff line change 1- #! /bin/bash -lv
1+ #! /bin/bash -l
2+
3+ if [ ${DIB_DEBUG_TRACE:- 0} -gt 0 ]; then
4+ set -x
5+ fi
6+
7+ set -euo pipefail
28
39case " $DISTRO_NAME " in
410 centos* | rhel* )
Original file line number Diff line number Diff line change 1- #! /bin/bash -lv
1+ #! /bin/bash -l
2+
3+ if [ ${DIB_DEBUG_TRACE:- 0} -gt 0 ]; then
4+ set -x
5+ fi
6+
7+ set -euo pipefail
28
39case " $DISTRO_NAME " in
410 centos* | rhel* )
Original file line number Diff line number Diff line change 1- #! /bin/bash -lv
1+ #! /bin/bash -l
2+
3+ if [ ${DIB_DEBUG_TRACE:- 0} -gt 0 ]; then
4+ set -x
5+ fi
6+
7+ set -euo pipefail
28
39if [ " $NVIDIA_CUDA_DELETE_REPO " = " y" -o " $NVIDIA_CUDA_DELETE_REPO " = " Y" ]
410then
Original file line number Diff line number Diff line change 1- #! /bin/bash -lv
1+ #! /bin/bash -l
2+
3+ if [ ${DIB_DEBUG_TRACE:- 0} -gt 0 ]; then
4+ set -x
5+ fi
6+
7+ set -euo pipefail
28
39case " $DISTRO_NAME " in
410 centos* | rhel* )
You can’t perform that action at this time.
0 commit comments