Skip to content

Commit

Permalink
build: Drop reference to ostree container encapsulate
Browse files Browse the repository at this point in the history
We aren't going to use this.
  • Loading branch information
cgwalters authored and jlebon committed Jan 11, 2023
1 parent 39bf542 commit 1472992
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/cmd-build
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ else
ostree_format=$(jq -r '.["ostree-format"]' < "${image_json}")
ostree_tarfile_path="${name}-${buildid}-ostree.${basearch}.ociarchive"
gitsrc=$(jq -r .git.origin < "${PWD}/coreos-assembler-config-git.json")
cmd=(ostree container encapsulate --copymeta="rpmostree.inputhash")
openshift_cvo_labels=$(jq -r '.["ostree-container-inject-openshift-cvo-labels"]' < "${image_json}")

# The ostree-ext default is 64, but this is still too much apparently
Expand All @@ -421,9 +420,7 @@ else
# `cannot mount layer, mount label "" too large 4168 > page size 4096`
MAX_OSTREECONTAINER_LAYERS=50
case "${ostree_format}" in
oci-chunked-v1)
cmd=(rpm-ostree compose container-encapsulate --max-layers="$MAX_OSTREECONTAINER_LAYERS" --format-version=1)
;;
oci-chunked-v1) ;;
*) fatal "Unknown ostree-format: ${ostree_format}"
esac
labels=()
Expand All @@ -432,7 +429,8 @@ else
"--label=io.openshift.build.versions=machine-os=${buildid}"
)
fi
runv "${cmd[@]}" --repo="${tmprepo}" \
runv rpm-ostree compose container-encapsulate --max-layers="$MAX_OSTREECONTAINER_LAYERS" --format-version=1 \
--repo="${tmprepo}" \
--label="coreos-assembler.image-config-checksum=${image_config_checksum}" \
--label="coreos-assembler.image-input-checksum=${image_input_checksum}" \
--label="org.opencontainers.image.source=${gitsrc}" \
Expand Down

0 comments on commit 1472992

Please sign in to comment.