Skip to content

Commit fc6c180

Browse files
committed
fixups
1 parent 3415376 commit fc6c180

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
@@ -397,6 +397,9 @@ main() {
397397
fi
398398

399399
outdir=$(mktemp -p "${tmp_builddir}" -d)
400+
# To get a shell in the osbuild supervin VM uncomment this.
401+
# osbuild can be started with `bash tmp/build.<artifact>/cmd.sh`
402+
# RUNVM_SHELL=1 \
400403
runvm_with_cache -- /usr/lib/coreos-assembler/runvm-osbuild \
401404
--config "${runvm_osbuild_config_json}" \
402405
--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
@@ -274,11 +274,13 @@ pipelines:
274274
name: coreos.ociarchive
275275
options:
276276
kernel-args:
277-
- rw
278277
- '$ignition_firstboot'
279278
- mpp-format-string: '{extra_kargs}'
280279
target-imgref:
281280
mpp-format-string: '{container_imgref}'
281+
stateroot: fedora-coreos
282+
boot-mount-spec: ""
283+
root-mount-spec: ""
282284
devices:
283285
disk:
284286
type: org.osbuild.loopback

src/runvm-osbuild

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,16 @@ set -x; osbuild-mpp \
114114
"${mppyaml}" "${processed_json}"
115115
set +x
116116

117-
log_disk_usage
117+
#log_disk_usage
118118

119119
# Build the image
120120
set -x
121121
# shellcheck disable=SC2068
122+
# To stop osbuild at a given stage to inspect the state of
123+
# things you can add `--break stage_id` to the following.
124+
# eg : `--break org.osbuild.bootc.install-to-filesystem`
125+
# The osbuild environnement is set up under `/run/osbuild`
126+
# Use it in conjuction with `RUNVM_SHELL=1 in `cmd-osbuild`
122127
osbuild \
123128
--out "$outdir" \
124129
--store "$storedir" \

0 commit comments

Comments
 (0)