Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions coreos/Containerfile.cosa
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM quay.io/coreos-assembler/coreos-assembler:latest
USER root
RUN yq -i '(.pipelines[].stages[] | select(.type == "org.osbuild.mkfs.ext4")).options.orphan_file = false' \
/usr/lib/coreos-assembler/osbuild-manifests/coreos.osbuild.x86_64.mpp.yaml
9 changes: 4 additions & 5 deletions coreos/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ archive := os + ".ociarchive"
full_name := os_name
label := os_name

cosa_image := "cosa-no-orphan-file"

kbc_image := "quay.io/trusted-execution-clusters/trustee-attester:fedora-b13fd8a"
clevis_pin_trustee_image := "quay.io/trusted-execution-clusters/clevis-pin-trustee"
ignition_image := "ghcr.io/trusted-execution-clusters/ignition:20260112-85608d6"
Expand All @@ -43,6 +45,7 @@ info:


build:
sudo podman build -t {{cosa_image}} -f Containerfile.cosa .
sudo podman build --no-cache \
--build-arg BASE={{base}} \
--build-arg COM_COREOS_OSNAME={{label}} \
Expand All @@ -61,10 +64,6 @@ cosa_function := '''
cosa() {
env | grep COREOS_ASSEMBLER || true

# Default container image
COREOS_ASSEMBLER_CONTAINER_LATEST="quay.io/coreos-assembler/coreos-assembler:latest"
sudo podman pull $COREOS_ASSEMBLER_CONTAINER_LATEST

set -ex
sudo podman run --rm -ti --security-opt=label=disable --privileged -u 0 \
--network host \
Expand All @@ -74,7 +73,7 @@ cosa_function := '''
${COREOS_ASSEMBLER_GIT:+-v=$COREOS_ASSEMBLER_GIT/src/:/usr/lib/coreos-assembler/:ro} \
${COREOS_ASSEMBLER_ADD_CERTS:+-v=/etc/pki/ca-trust:/etc/pki/ca-trust:ro} \
${COREOS_ASSEMBLER_CONTAINER_RUNTIME_ARGS} \
${COREOS_ASSEMBLER_CONTAINER:-$COREOS_ASSEMBLER_CONTAINER_LATEST} "$@"
${COREOS_ASSEMBLER_CONTAINER:-''' + cosa_image + '''} "$@"
}
'''

Expand Down