Skip to content

Commit 6de7d65

Browse files
committed
fixups
1 parent 7a904d3 commit 6de7d65

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/cmd-osbuild

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ main() {
401401
# Run OSBuild now to build the platforms that were requested.
402402
runvm_osbuild_config_json="$(generate_runvm_osbuild_config)"
403403
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 \
404407
runvm_with_cache -- /usr/lib/coreos-assembler/runvm-osbuild \
405408
--config "${runvm_osbuild_config_json}" \
406409
--mpp "/usr/lib/coreos-assembler/osbuild-manifests/coreos.osbuild.${basearch}.mpp.yaml" \

src/osbuild-manifests/coreos.osbuild.x86_64.mpp.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,13 @@ pipelines:
276276
name: coreos.ociarchive
277277
options:
278278
kernel-args:
279-
- rw
280279
- '$ignition_firstboot'
281280
- mpp-format-string: '{extra_kargs}'
282281
target-imgref:
283282
mpp-format-string: '{container_imgref}'
283+
stateroot: fedora-coreos
284+
boot-mount-spec: ""
285+
root-mount-spec: ""
284286
devices:
285287
disk:
286288
type: org.osbuild.loopback

src/runvm-osbuild

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,16 @@ set -x; osbuild-mpp \
125125
"${mppyaml}" "${processed_json}"
126126
set +x
127127

128-
log_disk_usage
128+
#log_disk_usage
129129

130130
# Build the image
131131
set -x
132132
# 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`
133138
osbuild \
134139
--out "$outdir" \
135140
--store "$storedir" \

0 commit comments

Comments
 (0)