Merge "Standarise tracing for scripts"
This commit is contained in:
		| @@ -94,7 +94,8 @@ for i in $(find elements -type f); do | |||||||
|         fi |         fi | ||||||
|     fi |     fi | ||||||
|  |  | ||||||
|     # Check that all scripts are set -eu -o pipefail |     # Check that all scripts are set -eu -o pipefail and look for | ||||||
|  |     # DIB_DEBUG_TRACE | ||||||
|     # NOTE(bnemec): This doesn't verify that the set call occurs high |     # NOTE(bnemec): This doesn't verify that the set call occurs high | ||||||
|     # enough in the file to be useful, but hopefully nobody will be |     # enough in the file to be useful, but hopefully nobody will be | ||||||
|     # sticking set calls at the end of their file to trick us.  And if |     # sticking set calls at the end of their file to trick us.  And if | ||||||
| @@ -119,6 +120,11 @@ for i in $(find elements -type f); do | |||||||
|                 error "$i is not set -o pipefail" |                 error "$i is not set -o pipefail" | ||||||
|             fi |             fi | ||||||
|         fi |         fi | ||||||
|  |         if ! excluded dibdebugtrace; then | ||||||
|  |             if [ -z "$(grep "DIB_DEBUG_TRACE" $i)" ]; then | ||||||
|  |                 error "$i does not follow DIB_DEBUG_TRACE" | ||||||
|  |             fi | ||||||
|  |         fi | ||||||
|     fi |     fi | ||||||
| done | done | ||||||
|  |  | ||||||
|   | |||||||
| @@ -106,7 +106,7 @@ while true ; do | |||||||
|         -o) export IMAGE_NAME=$2; shift 2 ;; |         -o) export IMAGE_NAME=$2; shift 2 ;; | ||||||
|         -t) IFS="," read -a IMAGE_TYPES <<< "$2"; export IMAGE_TYPES ; shift 2 ;; |         -t) IFS="," read -a IMAGE_TYPES <<< "$2"; export IMAGE_TYPES ; shift 2 ;; | ||||||
|         -h|--help) show_options; exit 0;; |         -h|--help) show_options; exit 0;; | ||||||
|         -x) shift; set -x;; |         -x) shift; export DIB_DEBUG_TRACE=$(( $DIB_DEBUG_TRACE + 1 )); set -x;; | ||||||
|         -u) shift; export COMPRESS_IMAGE="";; |         -u) shift; export COMPRESS_IMAGE="";; | ||||||
|         -c) shift ; export CLEAR_ENV=1;; |         -c) shift ; export CLEAR_ENV=1;; | ||||||
|         -n) shift; export SKIP_BASE="1";; |         -n) shift; export SKIP_BASE="1";; | ||||||
|   | |||||||
| @@ -1,7 +1,10 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # Override the default /etc/apt/apt.conf with $DIB_APT_CONF | # Override the default /etc/apt/apt.conf with $DIB_APT_CONF | ||||||
|  |  | ||||||
| set -ue | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| # exit directly if DIB_APT_CONF is not defined properly | # exit directly if DIB_APT_CONF is not defined properly | ||||||
|   | |||||||
| @@ -14,6 +14,9 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # Override the default /etc/apt/sources.list with $DIB_APT_SOURCES | # Override the default /etc/apt/sources.list with $DIB_APT_SOURCES | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| if [ -x "$TMP_MOUNT_PATH/tmp/clean_up_qemu_binary" ] ; then | if [ -x "$TMP_MOUNT_PATH/tmp/clean_up_qemu_binary" ] ; then | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| function clean_up_arch_emulation { | function clean_up_arch_emulation { | ||||||
|   | |||||||
| @@ -14,6 +14,9 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -16,7 +16,10 @@ | |||||||
| # under the License. | # under the License. | ||||||
| # | # | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| # Truncate /var/log files in preparation for first boot | # Truncate /var/log files in preparation for first boot | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # Store the build-time environment and command line arguments | # Store the build-time environment and command line arguments | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -13,8 +13,10 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
| set -eux |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| declare -a SPECIFIED_ELEMS | declare -a SPECIFIED_ELEMS | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # These are useful, or at worst not harmful, for all images we build. | # These are useful, or at worst not harmful, for all images we build. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # Tweak the stock ubuntu cloud-init config | # Tweak the stock ubuntu cloud-init config | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # Store build-time environment and command line arguments | # Store build-time environment and command line arguments | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -2,6 +2,9 @@ | |||||||
| # Fully upgrade everything on the system (if the package manager knows how to | # Fully upgrade everything on the system (if the package manager knows how to | ||||||
| # do it). | # do it). | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # Install baseline packages and tools. | # Install baseline packages and tools. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -15,6 +15,9 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -14,6 +14,10 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
| # | # | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -15,7 +15,10 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| source $_LIB/img-functions | source $_LIB/img-functions | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,11 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| set -eux |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| cat > ${TARGET_ROOT}/.extra_settings << EOF | cat > ${TARGET_ROOT}/.extra_settings << EOF | ||||||
| DIB_DEBIAN_ALT_INIT_PACKAGE=systemd-sysv | DIB_DEBIAN_ALT_INIT_PACKAGE=systemd-sysv | ||||||
| EOF | EOF | ||||||
|   | |||||||
| @@ -1,5 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| set -eux |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| cat > ${TARGET_ROOT}/.extra_settings << EOF | cat > ${TARGET_ROOT}/.extra_settings << EOF | ||||||
|   | |||||||
| @@ -1,6 +1,11 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| set -eux |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| # Working around bug in Debian cloud-init packages with upstart | # Working around bug in Debian cloud-init packages with upstart | ||||||
| # where startpar will wait forever for these because they are tasks | # where startpar will wait forever for these because they are tasks | ||||||
| # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=735204 | # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=735204 | ||||||
|   | |||||||
| @@ -1,4 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -14,8 +14,13 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
| # | # | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| if [ -f ${TARGET_ROOT}/.extra_settings ] ; then | if [ -f ${TARGET_ROOT}/.extra_settings ] ; then | ||||||
|     . ${TARGET_ROOT}/.extra_settings |     . ${TARGET_ROOT}/.extra_settings | ||||||
| fi | fi | ||||||
|   | |||||||
| @@ -1,5 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| set -eux |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| SCRIPTDIR=$(dirname $0) | SCRIPTDIR=$(dirname $0) | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -2,6 +2,9 @@ | |||||||
| # Trigger a run of dkms for all the modules installed | # Trigger a run of dkms for all the modules installed | ||||||
| # to ensure we have valid modules build for all. | # to ensure we have valid modules build for all. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -14,6 +14,9 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -14,6 +14,9 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # Do an apt-get clean. This will free some space. | # Do an apt-get clean. This will free some space. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -14,7 +14,11 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
| # | # | ||||||
| set -eux |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| DPKG_MANIFEST_NAME=dib-manifest-dpkg-$(basename ${IMAGE_NAME}) | DPKG_MANIFEST_NAME=dib-manifest-dpkg-$(basename ${IMAGE_NAME}) | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # Prevent apt from installing recommended packages | # Prevent apt from installing recommended packages | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -14,6 +14,9 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # Do an apt-get update, so that packages can be installed. | # Do an apt-get update, so that packages can be installed. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| # NOTE(bnemec): Dracut doesn't like it if we enable these | # NOTE(bnemec): Dracut doesn't like it if we enable these | ||||||
| # dib-lint: disable=setu sete setpipefail | # dib-lint: disable=setu sete setpipefail dibdebugtrace | ||||||
|  |  | ||||||
| # We never let Dracut boot off the specified root anyway, so all | # We never let Dracut boot off the specified root anyway, so all | ||||||
| # we need is a value it will accept. | # we need is a value it will accept. | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| # Dracut is bash too, and it doesn't play nicely with our usual sets | # Dracut is bash too, and it doesn't play nicely with our usual sets | ||||||
| # dib-lint: disable=setu sete setpipefail | # dib-lint: disable=setu sete setpipefail dibdebugtrace | ||||||
|  |  | ||||||
| check() { | check() { | ||||||
|     return 0 |     return 0 | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| DRACUT_NETWORK="dracut-network" | DRACUT_NETWORK="dracut-network" | ||||||
|   | |||||||
| @@ -1,8 +1,12 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|  |  | ||||||
| _LIB="/tmp/ramdisk-build" | _LIB="/tmp/ramdisk-build" | ||||||
|  |  | ||||||
| source "$_LIB/common-defaults" | source "$_LIB/common-defaults" | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| DIB_ELEMENT_MANIFEST_PATH=${DIB_ELEMENT_MANIFEST_PATH:-"$DIB_MANIFEST_IMAGE_DIR/dib-element-manifest"} | DIB_ELEMENT_MANIFEST_PATH=${DIB_ELEMENT_MANIFEST_PATH:-"$DIB_MANIFEST_IMAGE_DIR/dib-element-manifest"} | ||||||
|   | |||||||
| @@ -1,6 +1,11 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| set -uex |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| SCRIPTDIR=$(dirname $0) | SCRIPTDIR=$(dirname $0) | ||||||
|  |  | ||||||
| DIB_INIT_SYSTEM=$(dib-init-system) | DIB_INIT_SYSTEM=$(dib-init-system) | ||||||
|   | |||||||
| @@ -1,4 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -2,7 +2,11 @@ | |||||||
| # Note that this relies on the detail that all elements share one dir inside | # Note that this relies on the detail that all elements share one dir inside | ||||||
| # the chroot. This will copy all the files that elements have added to | # the chroot. This will copy all the files that elements have added to | ||||||
| # element/static into the image. Mode, symlinks etc will be respected. | # element/static into the image. Mode, symlinks etc will be respected. | ||||||
| set -eux |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| STATIC_SOURCE="$(dirname $0)/../static" | STATIC_SOURCE="$(dirname $0)/../static" | ||||||
|   | |||||||
| @@ -1,8 +1,12 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|  |  | ||||||
| [ -n "$TARGET_ROOT" ] | [ -n "$TARGET_ROOT" ] | ||||||
|  |  | ||||||
| source $_LIB/img-functions | source $_LIB/img-functions | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -14,7 +14,10 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| function build_efiboot_img() { | function build_efiboot_img() { | ||||||
|   | |||||||
| @@ -2,6 +2,9 @@ | |||||||
| # Save user SSH public key if available. | # Save user SSH public key if available. | ||||||
| # (Obviously not suitable for downloadable images). | # (Obviously not suitable for downloadable images). | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -2,6 +2,9 @@ | |||||||
| # Save user SSH public key if available. | # Save user SSH public key if available. | ||||||
| # XXX: Obviously not suitable for downloadable images. | # XXX: Obviously not suitable for downloadable images. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -2,9 +2,11 @@ | |||||||
| # Save the HTTP/[S] and noproxy settings if available. | # Save the HTTP/[S] and noproxy settings if available. | ||||||
| # XXX: Obviously not suitable for downloadable images. | # XXX: Obviously not suitable for downloadable images. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
| set -o xtrace |  | ||||||
|  |  | ||||||
| have_apt= | have_apt= | ||||||
| have_yum= | have_yum= | ||||||
|   | |||||||
| @@ -14,7 +14,11 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
| # | # | ||||||
| set -eux |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| if [ -d $TMP_MOUNT_PATH/${DIB_MANIFEST_IMAGE_DIR} ]; then | if [ -d $TMP_MOUNT_PATH/${DIB_MANIFEST_IMAGE_DIR} ]; then | ||||||
|   | |||||||
| @@ -14,6 +14,10 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
| # | # | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -14,7 +14,11 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
| # | # | ||||||
| set -eux |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| sudo mkdir -p $TMP_MOUNT_PATH/${DIB_MANIFEST_IMAGE_DIR} | sudo mkdir -p $TMP_MOUNT_PATH/${DIB_MANIFEST_IMAGE_DIR} | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # Ensure we load the mellanox driver somehow | # Ensure we load the mellanox driver somehow | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| set -eux |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| MODULES_LIST=${DIB_MODPROBE_BLACKLIST:?"Please set DIB_MODPROBE_BLACKLIST."} | MODULES_LIST=${DIB_MODPROBE_BLACKLIST:?"Please set DIB_MODPROBE_BLACKLIST."} | ||||||
|   | |||||||
| @@ -14,6 +14,9 @@ | |||||||
| # License for the specific language governing permissions and limitations | # License for the specific language governing permissions and limitations | ||||||
| # under the License. | # under the License. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| export OPENSUSE_EXTRAS_PATH="$TMP_MOUNT_PATH/tmp/opensuse-extras" | export OPENSUSE_EXTRAS_PATH="$TMP_MOUNT_PATH/tmp/opensuse-extras" | ||||||
|   | |||||||
| @@ -1,4 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -2,6 +2,9 @@ | |||||||
| # The base image created by kiwi does not contain an initrd so create one | # The base image created by kiwi does not contain an initrd so create one | ||||||
| # here. | # here. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # Setup repo required for dkms package. | # Setup repo required for dkms package. | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| SCRIPTNAME=$(basename $0) | SCRIPTNAME=$(basename $0) | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| SCRIPTNAME=$(basename $0) | SCRIPTNAME=$(basename $0) | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| sudo -E $(dirname $0)/../bin/package-installs-squash --elements="$IMAGE_ELEMENT" --path=$ELEMENTS_PATH $TMP_MOUNT_PATH/tmp/package-installs.json | sudo -E $(dirname $0)/../bin/package-installs-squash --elements="$IMAGE_ELEMENT" --path=$ELEMENTS_PATH $TMP_MOUNT_PATH/tmp/package-installs.json | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| package-installs -d $(dirname $0) | package-installs -d $(dirname $0) | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| package-uninstalls -d $(dirname $0) | package-uninstalls -d $(dirname $0) | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| package-installs -d $(dirname $0) | package-installs -d $(dirname $0) | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| package-uninstalls -d $(dirname $0) | package-uninstalls -d $(dirname $0) | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| package-installs -d $(dirname $0) | package-installs -d $(dirname $0) | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -eux | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| package-uninstalls -d $(dirname $0) | package-uninstalls -d $(dirname $0) | ||||||
|   | |||||||
| @@ -1,5 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
| set -eu | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,9 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| set -eux |  | ||||||
|  | if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||||||
|  |     set -x | ||||||
|  | fi | ||||||
|  | set -eu | ||||||
| set -o pipefail | set -o pipefail | ||||||
|  |  | ||||||
| sudo mkdir -p $TMP_MOUNT_PATH/usr/share/pkg-map/ | sudo mkdir -p $TMP_MOUNT_PATH/usr/share/pkg-map/ | ||||||
|   | |||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user
	 Jenkins
					Jenkins