File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 765765if [ -z "${RUNVM_SHELL:- } " ]; then
766766 (cd ${workdir} ; bash ${tmp_builddir} /cmd.sh |& tee /dev/virtio-ports/cosa-cmdout) || rc=\$ ?
767767else
768- (cd ${workdir} ; bash)
768+ (cd ${workdir} ; RUNVM_SHELL= ${RUNVM_SHELL} bash)
769769fi
770770echo \$ rc > ${rc_file}
771771if [ -n "\$ {cachedev}" ]; then
Original file line number Diff line number Diff line change @@ -109,7 +109,9 @@ set -x; osbuild-mpp \
109109 " ${mppyaml} " " ${processed_json} "
110110set +x
111111
112- # log_disk_usage
112+ if [[ -z " ${RUNVM_SHELL:- } " ]]; then
113+ log_disk_usage
114+ fi
113115
114116# Build the image
115117set -x
You can’t perform that action at this time.
0 commit comments