Skip to content

Disable x32 image repositories without config-manager - #238

Merged
anfimovdm merged 1 commit into
masterfrom
al-alts-i686-task-repos
Oct 29, 2026
Merged

anfimovdm merged 1 commit into
masterfrom
al-alts-i686-task-repos

Conversation

@anfimovdm

Copy link
Copy Markdown
Contributor

Resolves AlmaLinux/build-system#565

Follow-up to #237.

Summary

On prod the new "Disable image repositories in AlmaLinux x32 docker container" step fails:

No such command: config-manager. Please use /usr/bin/dnf --help
It could be a DNF plugin command, try: "dnf install 'dnf-command(config-manager)'"

Not every AlmaLinux i386 image ships the config-manager plugin (python3-dnf-plugins-core), and it can't be installed at that point, because the image repositories are the ones being replaced.

Changes

  • resources/roles/preparation/tasks/rhel.yml: set enabled=0 in /etc/yum.repos.d/*.repo with sed instead of dnf config-manager --set-disabled '*'. Every section in the image repository files has an explicit enabled= line. The files are %config(noreplace), so an almalinux-release update during provisioning keeps the edited files and doesn't re-enable them.

Testing

  • AlmaLinux 8 linux/386 container with python3-dnf-plugins-core removed (dnf config-manager fails as on prod) and vault.almalinux.org resolving to 127.0.0.1: provision passes, and only the task repositories and EPEL are enabled afterwards.

Not every AlmaLinux i386 image ships the dnf config-manager plugin, and
it can't be installed at that point because the image repositories are
the ones being replaced. Set enabled=0 in the repository files instead.
The files are %config(noreplace), so an almalinux-release update during
provisioning doesn't re-enable them.

Resolves: AlmaLinux/build-system#565
@anfimovdm
anfimovdm merged commit 90170ee into master Oct 29, 2026
3 checks passed
@anfimovdm
anfimovdm deleted the al-alts-i686-task-repos branch October 29, 2026 16:19
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.

ALTS: AlmaLinux 8 i686 docker tests fail provisioning when vault.almalinux.org is unreachable

1 participant