Skip to content

Commit 0e589f1

Browse files
dustymabejbtrystram
authored andcommitted
runvm-osbuild: drop set -x
Let's make the script a little less verbose by just doing set -x for the osbuild commands that get called.
1 parent 0c56d40 commit 0e589f1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/runvm-osbuild

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -eux -o pipefail
2+
set -euo pipefail
33

44
usage() {
55
cat <<EOC
@@ -95,7 +95,7 @@ podman images > /dev/null
9595

9696
# Run through the preprocessor
9797
# Note: don't quote the size arguements since they are numbers, not strings
98-
osbuild-mpp \
98+
set -x; osbuild-mpp \
9999
-D arch=\""$(arch)"\" \
100100
-D artifact_name_prefix=\""${artifact_name_prefix}"\" \
101101
-D ostree_ref=\""${ostree_ref}"\" \
@@ -110,8 +110,10 @@ osbuild-mpp \
110110
-D cloud_image_size_mb="${cloud_image_size_mb}" \
111111
-D rootfs_size_mb="${rootfs_size_mb}" \
112112
"${mppyaml}" "${processed_json}"
113+
set +x
113114

114115
# Build the image
116+
set -x
115117
# shellcheck disable=SC2068
116118
osbuild \
117119
--out "$outdir" \
@@ -124,6 +126,7 @@ osbuild \
124126
--checkpoint metal4k \
125127
${platforms[@]/#/--export=} \
126128
"${processed_json}"
129+
set +x
127130

128131
mv "${outdir}"/* "${orig_outdir}/"
129132
rm -f "${processed_json}"

0 commit comments

Comments
 (0)