Skip to content

Commit 656a46e

Browse files
committed
amend 28ea80f
1 parent d54d764 commit 656a46e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/cmd-osbuild

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,13 +416,13 @@ main() {
416416
fi
417417

418418
# To get a shell in the osbuild supermin VM uncomment this.
419-
# osbuild can be started with `bash tmp/build.<artifact>/cmd.sh`
419+
# osbuild can then be started with `bash tmp/build.<artifact>/cmd.sh`
420420
# See comment about checkpoints in runvm-osbuild
421421
# RUNVM_SHELL=1 \
422-
$cmd -- /usr/lib/coreos-assembler/runvm-osbuild \
423-
--config "${runvm_osbuild_config_json}" \
422+
$cmd -- /usr/lib/coreos-assembler/runvm-osbuild \
423+
--config "${runvm_osbuild_config_json}" \
424424
--mpp "/usr/lib/coreos-assembler/osbuild-manifests/coreos.osbuild.${basearch}${with_bootc_install}.mpp.yaml" \
425-
--outdir "${outdir}" \
425+
--outdir "${outdir}" \
426426
--platforms "$(IFS=,; echo "${platforms[*]}")"
427427

428428
for platform in "${platforms[@]}"; do

src/cmdlib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ rc=0
765765
if [ -z "${RUNVM_SHELL:-}" ]; then
766766
(cd ${workdir}; bash ${tmp_builddir}/cmd.sh |& tee /dev/virtio-ports/cosa-cmdout) || rc=\$?
767767
else
768-
(cd ${workdir}; bash)
768+
(cd ${workdir}; RUNVM_SHELL=${RUNVM_SHELL} bash)
769769
fi
770770
echo \$rc > ${rc_file}
771771
if [ -n "\${cachedev}" ]; then

src/runvm-osbuild

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ set -x; osbuild-mpp \
109109
"${mppyaml}" "${processed_json}"
110110
set +x
111111

112-
#log_disk_usage
112+
if [[ -z "${RUNVM_SHELL:-}" ]]; then
113+
log_disk_usage
114+
fi
113115

114116
# Build the image
115117
set -x

0 commit comments

Comments
 (0)