Skip to content

Commit c26652b

Browse files
committed
cmd-build: add com.coreos.osname
This "backports" what we did in coreos/fedora-coreos-config#3584 to the legacy build path because we want to be able to rely on that label in the osbuild live stage as an alternative way to implement osbuild/osbuild#2148.
1 parent 9d61d40 commit c26652b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cmd-build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,11 @@ else
424424
)
425425
fi
426426

427+
# For parity with the new container-native path:
428+
# https://github.com/coreos/fedora-coreos-config/pull/3584
429+
# That label is used by e.g. the osbuild live stage.
430+
labels+=("--label=com.coreos.osname=${name}")
431+
427432
runv rpm-ostree compose container-encapsulate --max-layers="$MAX_OSTREECONTAINER_LAYERS" --format-version=1 \
428433
--repo="${tmprepo}" \
429434
--label="coreos-assembler.image-config-checksum=${image_config_checksum}" \

0 commit comments

Comments
 (0)