diff --git a/diskimage_builder/elements/openeuler-minimal/pre-install.d/00-setup-mirror.bash b/diskimage_builder/elements/openeuler-minimal/pre-install.d/00-setup-mirror.bash old mode 100644 new mode 100755 index 312f0345..339c8961 --- a/diskimage_builder/elements/openeuler-minimal/pre-install.d/00-setup-mirror.bash +++ b/diskimage_builder/elements/openeuler-minimal/pre-install.d/00-setup-mirror.bash @@ -1,3 +1,11 @@ +#!/bin/bash + +if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then + set -x +fi +set -eu +set -o pipefail + if [ -n "${DIB_DISTRIBUTION_MIRROR:-}" ]; then # Only set the mirror for OS, everything, EPOL and update repositories, # The others (debuginfo and source) aren't mirrored since they do not exist on all mirrors