ci: generate package list during compose via finalize.d
Build containers / fedora-cosmic (rawhide) (push) Successful in 11m54s
Build containers / fedora-cosmic (44) (push) Successful in 12m56s

Avoid mounting the built image with buildah (ran out of disk); the
finalize.d hook records the rpm list next to the treefile and release.sh
consumes it directly.
This commit is contained in:
2026-09-21 17:35:17 +02:00
parent 0a05b2a6bc
commit de5b0f143a
4 changed files with 29 additions and 15 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Runs in the target root during `rpm-ostree compose image` (edition 2024
# finalize.d hook). Records the installed package list next to the treefile so
# build.sh can hand it to release.sh without having to mount the built image.
set -euo pipefail
if [[ -z "${RPMOSTREE_WORKDIR:-}" ]]; then
echo "RPMOSTREE_WORKDIR not set, skipping package list" >&2
exit 0
fi
rpm -qa --root "${PWD}" --qf '%{NAME} %{EVR}\n' | sort > "${RPMOSTREE_WORKDIR}/packages-current.txt"