Skip to content

Commit d1d7dcd

Browse files
authored
Merge pull request #41 from stackhpc/fixxes
Fixes
2 parents e2b6149 + d0e0601 commit d1d7dcd

File tree

9 files changed

+54
-8
lines changed

9 files changed

+54
-8
lines changed

elements/centos-kmods-sig/pre-install.d/01-kmods-sig-repo renamed to elements/centos-kmods-sig/install.d/01-kmods-sig-repo

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
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

39
case "$DISTRO_NAME" in
410
centos* )

elements/centos-kmods-sig/install.d/95-kmods-sig-packages renamed to elements/centos-kmods-sig/post-install.d/95-kmods-sig-packages

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
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

39
if [[ ${DISTRO_NAME} == centos && -n ${DIB_CENTOS_KMODS_PKGLIST} ]]; then
410
dnf install -y ${DIB_CENTOS_KMODS_PKGLIST}

elements/dhcp-on/install.d/95-dhcp-on

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/bin/bash
22

3+
set -euo pipefail
4+
35
if [ ! -d /etc/sysconfig/network-scripts ]
46
then
57
return -1
68
fi
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.
1012
if [ ! -e /etc/sysconfig/network-scripts/ifcfg-$DHCP_ON_DEV ]
1113
then

elements/dhcp-on/post-install.d/95-dhcp-on

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -euo pipefail
4+
35
# Purge the cloud image default network configuration
46
if [ "$DHCP_ON_DEV" != "eth0" ]
57
then

elements/elrepo/install.d/95-elrepo-packages

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
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

39
if [[ ${DISTRO_NAME} =~ (centos|rhel) && -n ${DIB_ELREPO_PKGLIST} ]]; then
410
dnf install -y "${DIB_ELREPO_PKGLIST}"

elements/elrepo/pre-install.d/01-elrepo

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
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

39
case "$DISTRO_NAME" in
410
centos* | rhel*)

elements/nvidia-cuda/install.d/95-nvidia-cuda

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
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

39
case "$DISTRO_NAME" in
410
centos* | rhel*)

elements/nvidia-cuda/post-install.d/95-nvidia-cuda

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
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

39
if [ "$NVIDIA_CUDA_DELETE_REPO" = "y" -o "$NVIDIA_CUDA_DELETE_REPO" = "Y" ]
410
then

elements/nvidia-cuda/pre-install.d/01-nvidia-cuda-repo

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
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

39
case "$DISTRO_NAME" in
410
centos* | rhel*)

0 commit comments

Comments
 (0)