Skip to content

Commit

Permalink
[rawhide] Switch to deploying via container image
Browse files Browse the repository at this point in the history
Because rawhide is a mechanical stream, this won't break anything
for production streams.  It will help shake out anything
that might be broken by this.
  • Loading branch information
cgwalters committed Nov 14, 2023
1 parent 9d4acf1 commit 4b4b043
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
8 changes: 6 additions & 2 deletions image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
# streams.
include: image-base.yaml

# Plan to move this to all streams soon
ostree-format: "oci-chunked-v1"

# We don't have zincati for rawhide, so we can bypass the issues in
# https://github.com/coreos/fedora-coreos-tracker/issues/1263
# and enable it by default for rawhide!
deploy-via-container: true
container-imgref: "ostree-remote-registry:fedora:quay.io/fedora/fedora-coreos:rawhide"
16 changes: 13 additions & 3 deletions tests/kola/rpm-ostree/kernel-replace
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,22 @@ kver="6.2.9-300.fc38.${arch}"
case "${AUTOPKGTEST_REBOOT_MARK:-}" in
"")
# Take the existing ostree commit, and export it to a container image, then rebase to it.
checksum=$(rpm-ostree status --json | jq -r '.deployments[0].checksum')
v0=$(rpm-ostree status --json | jq -r '.deployments[0].version')
rpm-ostree status --json > status.json
checksum=$(jq -r '.deployments[0].checksum' < status.json)
v0=$(jq -r '.deployments[0].version' < status.json)
imgref=$(jq -r '.deployments[0]["container-image-reference"]' < status.json)
rm ${image_dir} -rf
encapsulate_args=()
# A hack...if we're booted into a container, then we need to fake things out
# for the merge commit to turn it back into an image. What we *really* want
# here obviously is seamless support for re-serializing a container from
# the ostree storage, but right now we're not doing the tar-split stuff.
if [[ "$imgref" != null ]]; then
encapsulate_args+=("--label" "ostree.bootable=true")
fi
# Since we're switching OS update stream, turn off zincati
systemctl mask --now zincati
ostree container encapsulate --repo=/ostree/repo ${checksum} "${image}"
ostree container encapsulate ${encapsulate_args[@]} --repo=/ostree/repo ${checksum} "${image}"
# This one keeps --experimental, but we also test without it below
rpm-ostree rebase --experimental "$image_pull"
ostree container image list --repo=/ostree/repo | tee imglist.txt
Expand Down

0 comments on commit 4b4b043

Please sign in to comment.