Skip to content

Fixes #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash -lv
#!/bin/bash -l

if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi

set -euo pipefail

case "$DISTRO_NAME" in
centos* )
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash -lv
#!/bin/bash -l

if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi

set -euo pipefail

if [[ ${DISTRO_NAME} == centos && -n ${DIB_CENTOS_KMODS_PKGLIST} ]]; then
dnf install -y ${DIB_CENTOS_KMODS_PKGLIST}
Expand Down
4 changes: 3 additions & 1 deletion elements/dhcp-on/install.d/95-dhcp-on
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/bash

set -euo pipefail

if [ ! -d /etc/sysconfig/network-scripts ]
then
return -1
fi

# If there is no existing network configuration for the given device,
# If there is no existing network configuration for the given device,
# create a catch-all DHCP configuration for this network interface.
if [ ! -e /etc/sysconfig/network-scripts/ifcfg-$DHCP_ON_DEV ]
then
Expand Down
2 changes: 2 additions & 0 deletions elements/dhcp-on/post-install.d/95-dhcp-on
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail

# Purge the cloud image default network configuration
if [ "$DHCP_ON_DEV" != "eth0" ]
then
Expand Down
8 changes: 7 additions & 1 deletion elements/elrepo/install.d/95-elrepo-packages
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash -lv
#!/bin/bash -l

if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi

set -euo pipefail

if [[ ${DISTRO_NAME} =~ (centos|rhel) && -n ${DIB_ELREPO_PKGLIST} ]]; then
dnf install -y "${DIB_ELREPO_PKGLIST}"
Expand Down
8 changes: 7 additions & 1 deletion elements/elrepo/pre-install.d/01-elrepo
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash -lv
#!/bin/bash -l

if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi

set -euo pipefail

case "$DISTRO_NAME" in
centos* | rhel*)
Expand Down
8 changes: 7 additions & 1 deletion elements/nvidia-cuda/install.d/95-nvidia-cuda
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash -lv
#!/bin/bash -l

if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi

set -euo pipefail

case "$DISTRO_NAME" in
centos* | rhel*)
Expand Down
8 changes: 7 additions & 1 deletion elements/nvidia-cuda/post-install.d/95-nvidia-cuda
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash -lv
#!/bin/bash -l

if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi

set -euo pipefail

if [ "$NVIDIA_CUDA_DELETE_REPO" = "y" -o "$NVIDIA_CUDA_DELETE_REPO" = "Y" ]
then
Expand Down
8 changes: 7 additions & 1 deletion elements/nvidia-cuda/pre-install.d/01-nvidia-cuda-repo
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash -lv
#!/bin/bash -l

if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi

set -euo pipefail

case "$DISTRO_NAME" in
centos* | rhel*)
Expand Down