Skip to content

fix: use dnf for EL8+ RH genimage installroot#7564

Merged
Obihoernchen merged 1 commit into
xcat2:masterfrom
VersatusHPC:fix/rh-genimage-dnf
May 7, 2026
Merged

fix: use dnf for EL8+ RH genimage installroot#7564
Obihoernchen merged 1 commit into
xcat2:masterfrom
VersatusHPC:fix/rh-genimage-dnf

Conversation

@viniciusferrao
Copy link
Copy Markdown
Member

@viniciusferrao viniciusferrao commented May 7, 2026

This PR fixes a long standing issue where we were using dnf and yum interchangeable which isn't actually true many times.

  • Updates the RH-family genimage installroot path to use dnf on EL8 and newer systems when /usr/bin/dnf is available, while keeping yum as the fallback for EL7 and older environments.
  • The base package install pass and otherpkgs pass now share the same RPM installroot command builder, so EL8+ keeps the existing --releasever and module_platform_id options consistently.

Fixes: #6671

@Obihoernchen Obihoernchen added this to the 2.18 milestone May 7, 2026
@Obihoernchen Obihoernchen merged commit 6bf1d9a into xcat2:master May 7, 2026
2 checks passed
@viniciusferrao viniciusferrao deleted the fix/rh-genimage-dnf branch May 7, 2026 21:10
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.

Migrate xCAT from yum to dnf

2 participants