File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,9 @@ main() {
401
401
# Run OSBuild now to build the platforms that were requested.
402
402
runvm_osbuild_config_json=" $( generate_runvm_osbuild_config) "
403
403
outdir=$( mktemp -p " ${tmp_builddir} " -d)
404
+ # To get a shell in the osbuild supervin VM uncomment this.
405
+ # osbuild can be started with `bash tmp/build.<artifact>/cmd.sh`
406
+ # RUNVM_SHELL=1 \
404
407
runvm_with_cache -- /usr/lib/coreos-assembler/runvm-osbuild \
405
408
--config " ${runvm_osbuild_config_json} " \
406
409
--mpp " /usr/lib/coreos-assembler/osbuild-manifests/coreos.osbuild.${basearch} .mpp.yaml" \
Original file line number Diff line number Diff line change @@ -276,11 +276,13 @@ pipelines:
276
276
name : coreos.ociarchive
277
277
options :
278
278
kernel-args :
279
- - rw
280
279
- ' $ignition_firstboot'
281
280
- mpp-format-string : ' {extra_kargs}'
282
281
target-imgref :
283
282
mpp-format-string : ' {container_imgref}'
283
+ stateroot : fedora-coreos
284
+ boot-mount-spec : " "
285
+ root-mount-spec : " "
284
286
devices :
285
287
disk :
286
288
type : org.osbuild.loopback
Original file line number Diff line number Diff line change @@ -125,11 +125,16 @@ set -x; osbuild-mpp \
125
125
" ${mppyaml} " " ${processed_json} "
126
126
set +x
127
127
128
- log_disk_usage
128
+ # log_disk_usage
129
129
130
130
# Build the image
131
131
set -x
132
132
# shellcheck disable=SC2068
133
+ # To stop osbuild at a given stage to inspect the state of
134
+ # things you can add `--break stage_id` to the following.
135
+ # eg : `--break org.osbuild.bootc.install-to-filesystem`
136
+ # The osbuild environnement is set up under `/run/osbuild`
137
+ # Use it in conjuction with `RUNVM_SHELL=1 in `cmd-osbuild`
133
138
osbuild \
134
139
--out " $outdir " \
135
140
--store " $storedir " \
You can’t perform that action at this time.
0 commit comments