Skip to content

fix(yum): pin PGDG repo baseurl to the OS major version - #91

Merged
indigo423 merged 1 commit into
mainfrom
fix/pgdg-releasever-minor
Oct 10, 2026
Merged

indigo423 merged 1 commit into
mainfrom
fix/pgdg-releasever-minor

Conversation

@indigo423

Copy link
Copy Markdown
Contributor

Closes #90

The PGDG repo package 42.0-70 builds its baseurl from $releasever_major.$releasever_minor. CentOS Stream reports $releasever as a bare major version, so the minor part expands empty and dnf requests rhel-9.-x86_64, which 404s. Alma and Rocky carry a minor version and still work. The scheduled main runs have failed on the four CentOS legs since 2026-09-28, and #89 fails for the same reason.

After installing the repo rpm, bootstrap-yum.sh now rewrites every baseurl in pgdg-redhat-all.repo to the per-major directory, which exists upstream for EL9 and EL10 on x86_64 and aarch64.

Verified locally on arm64: make lint and make integration-test IMAGE=quay.io/centos/centos:stream9 SCRIPT=bootstrap-yum.sh (PostgreSQL and OpenNMS active, Web UI 302).

🤖 Generated with Claude Code

The pgdg-redhat-repo package (42.0-70) now builds its baseurl from
$releasever_major.$releasever_minor. CentOS Stream reports $releasever
as a bare major version, so $releasever_minor expands empty and dnf
requests rhel-9.-x86_64, which 404s. Alma and Rocky carry a minor
version and are unaffected.

Rewrite the repo file after installing it so every baseurl uses the
per-major directory, which exists upstream for EL9 and EL10 on both
x86_64 and aarch64.

Verified with make integration-test IMAGE=quay.io/centos/centos:stream9
SCRIPT=bootstrap-yum.sh on arm64.

Closes #90

Assisted-by: ClaudeCode:claude-fable-5-1
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Ronny Trommer <ronny@no42.org>
@indigo423
indigo423 merged commit 41b17bc into main Oct 10, 2026
34 of 36 checks passed
@indigo423
indigo423 deleted the fix/pgdg-releasever-minor branch October 10, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bootstrap-yum] PostgreSQL install fails on CentOS Stream when PGDG baseurl expands to rhel-9.-x86_64

1 participant