Skip to content

Commit 78a9454

Browse files
dustymabejlebon
authored andcommitted
cmd-build-with-buildah: ensure ociarchive is compressed
Without this option my builds were about twice as large: ``` $ ls -lhd builds/*/x86_64/*ociarchive -rw-r--r--. 1 dustymabe dustymabe 1.7G Aug 21 16:44 builds/42.20250821.dev.0/x86_64/fedora-coreos-42.20250821.dev.0-ostree.x86_64.ociarchive -rw-r--r--. 1 dustymabe dustymabe 931M Aug 21 16:58 builds/42.20250821.dev.1/x86_64/fedora-coreos-42.20250821.dev.1-ostree.x86_64.ociarchive ```
1 parent 4184e1a commit 78a9454

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmd-build-with-buildah

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ build_with_buildah() {
167167
osname=$(source "src/config/${argsfile}"; echo "${NAME}")
168168
final_ref="containers-storage:localhost/${osname}:${VERSION}"
169169
else
170+
# In the supermin path ensure the ociarchive gets compressed
171+
set -- "$@" --disable-compression=false
170172
final_ref="oci-archive:${tmp_oci_archive_path}"
171173
fi
172174

0 commit comments

Comments
 (0)